Fix Bigcluster build error with minidump.cc after r1147.

A=Jia Ji <jijia@google.com>
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
This commit is contained in:
thestig@chromium.org 2013-04-19 22:05:07 +00:00
parent 093b8aee9b
commit 697da828dc

View File

@ -1116,21 +1116,26 @@ void MinidumpContext::Print() {
case MD_CONTEXT_PPC64: { case MD_CONTEXT_PPC64: {
const MDRawContextPPC64* context_ppc64 = GetContextPPC64(); const MDRawContextPPC64* context_ppc64 = GetContextPPC64();
printf("MDRawContextPPC64\n"); printf("MDRawContextPPC64\n");
printf(" context_flags = 0x%lx\n", printf(" context_flags = 0x%" PRIx64 "\n",
context_ppc64->context_flags); context_ppc64->context_flags);
printf(" srr0 = 0x%lx\n", context_ppc64->srr0); printf(" srr0 = 0x%" PRIx64 "\n",
printf(" srr1 = 0x%lx\n", context_ppc64->srr1); context_ppc64->srr0);
printf(" srr1 = 0x%" PRIx64 "\n",
context_ppc64->srr1);
for (unsigned int gpr_index = 0; for (unsigned int gpr_index = 0;
gpr_index < MD_CONTEXT_PPC64_GPR_COUNT; gpr_index < MD_CONTEXT_PPC64_GPR_COUNT;
++gpr_index) { ++gpr_index) {
printf(" gpr[%2d] = 0x%lx\n", printf(" gpr[%2d] = 0x%" PRIx64 "\n",
gpr_index, context_ppc64->gpr[gpr_index]); gpr_index, context_ppc64->gpr[gpr_index]);
} }
printf(" cr = 0x%lx\n", context_ppc64->cr); printf(" cr = 0x%" PRIx64 "\n", context_ppc64->cr);
printf(" xer = 0x%lx\n", context_ppc64->xer); printf(" xer = 0x%" PRIx64 "\n",
printf(" lr = 0x%lx\n", context_ppc64->lr); context_ppc64->xer);
printf(" ctr = 0x%lx\n", context_ppc64->ctr); printf(" lr = 0x%" PRIx64 "\n", context_ppc64->lr);
printf(" vrsave = 0x%lx\n", context_ppc64->vrsave); printf(" ctr = 0x%" PRIx64 "\n",
context_ppc64->ctr);
printf(" vrsave = 0x%" PRIx64 "\n",
context_ppc64->vrsave);
for (unsigned int fpr_index = 0; for (unsigned int fpr_index = 0;
fpr_index < MD_FLOATINGSAVEAREA_PPC_FPR_COUNT; fpr_index < MD_FLOATINGSAVEAREA_PPC_FPR_COUNT;
++fpr_index) { ++fpr_index) {