diff options
author | hunt <hunt> | 2006-02-23 21:01:51 +0000 |
---|---|---|
committer | hunt <hunt> | 2006-02-23 21:01:51 +0000 |
commit | 58cf0567b5d6f06e320d169be722eefb3df2b2c1 (patch) | |
tree | ad71d183e5775af724f6669836c78279db59eefc /staptree.cxx | |
parent | aff9a0ecf38b32f94dca0cc8abad939dfbf03575 (diff) | |
download | systemtap-steved-58cf0567b5d6f06e320d169be722eefb3df2b2c1.tar.gz systemtap-steved-58cf0567b5d6f06e320d169be722eefb3df2b2c1.tar.xz systemtap-steved-58cf0567b5d6f06e320d169be722eefb3df2b2c1.zip |
2006-02-23 Martin Hunt <hunt@redhat.com>
PR 1989. Adds support for %p in printf
* staptree.h (struct print_format): Add conv_unsigned_ptr.
* staptree.cxx (components_to_string): Output 'p'
for conv_unsigned_ptr.
* elaborate.cxx (visit_print_format): Add case for
conv_unsigned_ptr.
Diffstat (limited to 'staptree.cxx')
-rw-r--r-- | staptree.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/staptree.cxx b/staptree.cxx index 74aa3964..6669e9ae 100644 --- a/staptree.cxx +++ b/staptree.cxx @@ -401,6 +401,10 @@ print_format::components_to_string(vector<format_component> const & components) oss << "llo"; break; + case conv_unsigned_ptr: + oss << "p"; + break; + case conv_unsigned_uppercase_hex: oss << "llX"; break; @@ -551,6 +555,10 @@ print_format::string_to_components(string const & str) curr.type = conv_unsigned_decimal; break; + case 'p': + curr.type = conv_unsigned_ptr; + break; + case 'X': curr.type = conv_unsigned_uppercase_hex; break; |