summaryrefslogtreecommitdiff
path: root/src/base/cprintf_formats.hh
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2008-12-03 04:57:54 -0800
committerNathan Binkert <nate@binkert.org>2008-12-03 04:57:54 -0800
commit74f10be5266039fc9d2c1be14c551d1bcefed99c (patch)
tree99bfdb9d3ff33d397f7dc935a97dd5b5968cc06b /src/base/cprintf_formats.hh
parent47e2b0889359877cb9a86c02c4bdf862fbd87338 (diff)
downloadgem5-74f10be5266039fc9d2c1be14c551d1bcefed99c.tar.xz
cprintf: support a configurable width and precision ("*" in printf)
Diffstat (limited to 'src/base/cprintf_formats.hh')
-rw-r--r--src/base/cprintf_formats.hh4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/base/cprintf_formats.hh b/src/base/cprintf_formats.hh
index 75157a540..6bf6b2b66 100644
--- a/src/base/cprintf_formats.hh
+++ b/src/base/cprintf_formats.hh
@@ -50,6 +50,8 @@ struct Format
enum { best, fixed, scientific } float_format;
int precision;
int width;
+ bool get_precision;
+ bool get_width;
Format() { clear(); }
@@ -65,6 +67,8 @@ struct Format
format = none;
precision = -1;
width = 0;
+ get_precision = false;
+ get_width = false;
}
};