diff options
author | Nathan Binkert <nate@binkert.org> | 2008-12-03 04:57:54 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2008-12-03 04:57:54 -0800 |
commit | 74f10be5266039fc9d2c1be14c551d1bcefed99c (patch) | |
tree | 99bfdb9d3ff33d397f7dc935a97dd5b5968cc06b /src/base/cprintf_formats.hh | |
parent | 47e2b0889359877cb9a86c02c4bdf862fbd87338 (diff) | |
download | gem5-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.hh | 4 |
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; } }; |