summaryrefslogtreecommitdiff
path: root/src/base/cprintf.hh
diff options
context:
space:
mode:
authorChander Sudanthi <chander.sudanthi@arm.com>2012-11-02 11:32:00 -0500
committerChander Sudanthi <chander.sudanthi@arm.com>2012-11-02 11:32:00 -0500
commit322daba74c122c4ba8c89b73ca8107be02990e5c (patch)
tree7417babdcab959f83315caa1feefeedbd9a48d44 /src/base/cprintf.hh
parent55787cc0d0ecdbd060f7ee1caaaab90d2482eb67 (diff)
downloadgem5-322daba74c122c4ba8c89b73ca8107be02990e5c.tar.xz
base: Fix a few incorrectly handled print format cases
This patch ensures cases like %0.6u, %06f, and %.6u are processed correctly. The case like %06f is ambiguous and was made to match printf. Also, this patch removes the goto statement in cprintf.cc in favor of a function call.
Diffstat (limited to 'src/base/cprintf.hh')
-rw-r--r--src/base/cprintf.hh1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/base/cprintf.hh b/src/base/cprintf.hh
index 6124d8c73..e702fa3a6 100644
--- a/src/base/cprintf.hh
+++ b/src/base/cprintf.hh
@@ -59,6 +59,7 @@ struct Print
Format fmt;
void process();
+ void process_flag();
public:
Print(std::ostream &stream, const std::string &format);