diff options
author | Elliott Baron <ebaron@toriamos.yyz.redhat.com> | 2008-10-20 11:11:19 -0400 |
---|---|---|
committer | Elliott Baron <ebaron@toriamos.yyz.redhat.com> | 2008-10-20 11:11:19 -0400 |
commit | fecccf83624c2f09207cd281f9efc272300e8e55 (patch) | |
tree | d5509bcee4798d90781cb6c1f7dc8741a32bc28a /staptree.cxx | |
parent | 6b1730cb635b8d671bca8c3df173db3f1282ecdb (diff) | |
download | systemtap-steved-fecccf83624c2f09207cd281f9efc272300e8e55.tar.gz systemtap-steved-fecccf83624c2f09207cd281f9efc272300e8e55.tar.xz systemtap-steved-fecccf83624c2f09207cd281f9efc272300e8e55.zip |
PR6851: Added support for %c printf conversion specifier [trying again]
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/staptree.cxx b/staptree.cxx index 73d6fe93..38166c54 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -458,6 +458,10 @@ print_format::components_to_string(vector<format_component> const & components) oss << "b"; break; + case conv_char: + oss << "llc"; + break; + case conv_signed_decimal: oss << "lld"; break; @@ -635,7 +639,7 @@ print_format::string_to_components(string const & str) if (i == str.end()) break; - // Parse the actual conversion specifier (sdiouxX) + // Parse the actual conversion specifier (bcsmdioupxXn) switch (*i) { // Valid conversion types @@ -643,6 +647,10 @@ print_format::string_to_components(string const & str) curr.type = conv_binary; break; + case 'c': + curr.type = conv_char; + break; + case 's': curr.type = conv_string; break; |