aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbryner <bryner@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-03-04 20:28:39 +0000
committerbryner <bryner@4c0a9323-5329-0410-9bdc-e9ce6186880e>2008-03-04 20:28:39 +0000
commit98cb0aebff23fcc2fd20d46aa8213fffd1ab5b4a (patch)
tree847b03dbf868b326b88253b6541fe88ff90f6fab
parentDon't redefine __STDC_FORMAT_MACROS if it's already defined. r=mmentovai. (diff)
downloadbreakpad-98cb0aebff23fcc2fd20d46aa8213fffd1ab5b4a.tar.xz
Use "%" PRIx64 instead of "%llx" for 64-bit portability.
git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@243 4c0a9323-5329-0410-9bdc-e9ce6186880e
-rw-r--r--src/processor/minidump_stackwalk.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/processor/minidump_stackwalk.cc b/src/processor/minidump_stackwalk.cc
index c4598515..05d9641f 100644
--- a/src/processor/minidump_stackwalk.cc
+++ b/src/processor/minidump_stackwalk.cc
@@ -268,7 +268,7 @@ static void PrintModules(const CodeModules *modules) {
++module_sequence) {
const CodeModule *module = modules->GetModuleAtSequence(module_sequence);
u_int64_t base_address = module->base_address();
- printf("0x%08llx - 0x%08llx %s %s%s\n",
+ printf("0x%08" PRIx64 " - 0x%08" PRIx64 " %s %s%s\n",
base_address, base_address + module->size() - 1,
PathnameStripper::File(module->code_file()).c_str(),
module->version().empty() ? "???" : module->version().c_str(),
@@ -298,7 +298,7 @@ static void PrintModulesMachineReadable(const CodeModules *modules) {
++module_sequence) {
const CodeModule *module = modules->GetModuleAtSequence(module_sequence);
u_int64_t base_address = module->base_address();
- printf("Module%c%s%c%s%c%s%c%s%c0x%08llx%c0x%08llx%c%d\n",
+ printf("Module%c%s%c%s%c%s%c%s%c0x%08" PRIx64 "%c0x%08" PRIx64 "%c%d\n",
kOutputSeparator,
StripSeparator(PathnameStripper::File(module->code_file())).c_str(),
kOutputSeparator, StripSeparator(module->version()).c_str(),