diff options
author | Wenji Huang <wenji.huang@oracle.com> | 2009-01-11 18:39:55 -0500 |
---|---|---|
committer | Wenji Huang <wenji.huang@oracle.com> | 2009-01-11 18:39:55 -0500 |
commit | dc38c256fac058289cdebd0fde881b4faf24b9d1 (patch) | |
tree | d820d8a1a0fd87de7b5518660b171c4d7f394985 /tapsets.cxx | |
parent | 50431f30cac19c57f53bdfe0fd138cdc2dcfa2f9 (diff) | |
download | systemtap-steved-dc38c256fac058289cdebd0fde881b4faf24b9d1.tar.gz systemtap-steved-dc38c256fac058289cdebd0fde881b4faf24b9d1.tar.xz systemtap-steved-dc38c256fac058289cdebd0fde881b4faf24b9d1.zip |
Fix compilation warning of too large number on 32-bits machines.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index 20bea45d..148cc99d 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -5039,7 +5039,7 @@ dwarf_derived_probe_group::emit_module_decls (systemtap_session& s) assert (p->maxactive_val >= 0 && p->maxactive_val <= USHRT_MAX); s.op->line() << " .maxactive_val=" << p->maxactive_val << ","; } - s.op->line() << " .address=0x" << hex << p->addr << dec << "UL,"; + s.op->line() << " .address=(unsigned long)0x" << hex << p->addr << dec << "ULL,"; s.op->line() << " .module=\"" << p->module << "\","; s.op->line() << " .section=\"" << p->section << "\","; s.op->line() << " .pp=" << lex_cast_qstring (*p->sole_location()) << ","; @@ -7104,7 +7104,7 @@ uprobe_derived_probe_group::emit_module_decls (systemtap_session& s) s.op->line() << "},"; if (p->section != ".absolute") s.op->line() << " .pathname=" << lex_cast_qstring(p->module) << ", "; - s.op->line() << " .address=0x" << hex << p->address << dec << "UL,"; + s.op->line() << " .address=(unsigned long)0x" << hex << p->address << dec << "ULL,"; s.op->line() << " .pp=" << lex_cast_qstring (*p->sole_location()) << ","; s.op->line() << " .ph=&" << p->name << ","; if (p->return_p) s.op->line() << " .return_p=1,"; |