From 697da828dc830813f6302e248168297fff0b7737 Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Fri, 19 Apr 2013 22:05:07 +0000 Subject: Fix Bigcluster build error with minidump.cc after r1147. A=Jia Ji Original review: https://breakpad.appspot.com/563002/ Review URL: https://breakpad.appspot.com/564003 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1156 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/processor/minidump.cc | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'src/processor') diff --git a/src/processor/minidump.cc b/src/processor/minidump.cc index 17232b8d..e29fccbc 100755 --- a/src/processor/minidump.cc +++ b/src/processor/minidump.cc @@ -1116,21 +1116,26 @@ void MinidumpContext::Print() { case MD_CONTEXT_PPC64: { const MDRawContextPPC64* context_ppc64 = GetContextPPC64(); printf("MDRawContextPPC64\n"); - printf(" context_flags = 0x%lx\n", + printf(" context_flags = 0x%" PRIx64 "\n", context_ppc64->context_flags); - printf(" srr0 = 0x%lx\n", context_ppc64->srr0); - printf(" srr1 = 0x%lx\n", context_ppc64->srr1); + printf(" srr0 = 0x%" PRIx64 "\n", + context_ppc64->srr0); + printf(" srr1 = 0x%" PRIx64 "\n", + context_ppc64->srr1); for (unsigned int gpr_index = 0; gpr_index < MD_CONTEXT_PPC64_GPR_COUNT; ++gpr_index) { - printf(" gpr[%2d] = 0x%lx\n", + printf(" gpr[%2d] = 0x%" PRIx64 "\n", gpr_index, context_ppc64->gpr[gpr_index]); } - printf(" cr = 0x%lx\n", context_ppc64->cr); - printf(" xer = 0x%lx\n", context_ppc64->xer); - printf(" lr = 0x%lx\n", context_ppc64->lr); - printf(" ctr = 0x%lx\n", context_ppc64->ctr); - printf(" vrsave = 0x%lx\n", context_ppc64->vrsave); + printf(" cr = 0x%" PRIx64 "\n", context_ppc64->cr); + printf(" xer = 0x%" PRIx64 "\n", + context_ppc64->xer); + printf(" lr = 0x%" PRIx64 "\n", context_ppc64->lr); + printf(" ctr = 0x%" PRIx64 "\n", + context_ppc64->ctr); + printf(" vrsave = 0x%" PRIx64 "\n", + context_ppc64->vrsave); for (unsigned int fpr_index = 0; fpr_index < MD_FLOATINGSAVEAREA_PPC_FPR_COUNT; ++fpr_index) { -- cgit v1.2.1