diff options
author | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
---|---|---|
committer | Dave Brolley <brolley@redhat.com> | 2009-04-21 11:11:21 -0400 |
commit | 623a41aeb47995f6b5790e38f9e0e10959f98b4e (patch) | |
tree | e79bd792bfc682f842f804af1c119a751ae18c0c /translate.cxx | |
parent | 09fd19d66b9e3318e9e33f604eb2dbe623955123 (diff) | |
parent | d0ea46ceac2e72fe0b86269ea50c004711148158 (diff) | |
download | systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.gz systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.tar.xz systemtap-steved-623a41aeb47995f6b5790e38f9e0e10959f98b4e.zip |
Merge branch 'master' of git://sources.redhat.com/git/systemtap
Diffstat (limited to 'translate.cxx')
-rw-r--r-- | translate.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/translate.cxx b/translate.cxx index a6357766..79c05d4b 100644 --- a/translate.cxx +++ b/translate.cxx @@ -4202,7 +4202,8 @@ c_unparser::visit_print_format (print_format* e) int use_print = 0; string format_string = print_format::components_to_string(components); - if (tmp.size() == 0 || (tmp.size() == 1 && format_string == "%s")) + if ((tmp.size() == 0 && format_string.find("%%") == std::string::npos) + || (tmp.size() == 1 && format_string == "%s")) use_print = 1; else if (tmp.size() == 1 && e->args[0]->tok->type == tok_string |