diff options
Diffstat (limited to 'runtime/stack-ppc64.c')
-rw-r--r-- | runtime/stack-ppc64.c | 29 |
1 files changed, 14 insertions, 15 deletions
diff --git a/runtime/stack-ppc64.c b/runtime/stack-ppc64.c index 72542bd2..87c528fd 100644 --- a/runtime/stack-ppc64.c +++ b/runtime/stack-ppc64.c @@ -7,7 +7,7 @@ * later version. */ -static void __stp_stack_sprint (String str, struct pt_regs *regs, int verbose, int levels) +static void __stp_stack_print (struct pt_regs *regs, int verbose, int levels) { unsigned long ip, newsp, lr = 0; int count = 0; @@ -23,14 +23,14 @@ static void __stp_stack_sprint (String str, struct pt_regs *regs, int verbose, i ip = _sp[2]; if (!firstframe || ip != lr) { if (verbose) { - _stp_sprintf(str, "[%016lx] [%016lx] ", sp, ip); - _stp_symbol_sprint(str, ip); + _stp_printf("[%p] [%p] ", sp, ip); + _stp_symbol_print(ip); if (firstframe) - _stp_string_cat(str, " (unreliable)"); - _stp_string_cat(str, "\n"); + _stp_print(" (unreliable)"); + _stp_print_char('\n'); } else - _stp_sprintf(str,"%lx ", ip); + _stp_printf("%p ", ip); } firstframe = 0; /* @@ -41,19 +41,18 @@ static void __stp_stack_sprint (String str, struct pt_regs *regs, int verbose, i struct pt_regs *regs = (struct pt_regs *) (sp + STACK_FRAME_OVERHEAD); if (verbose) { - _stp_sprintf(str, "--- Exception: %lx at ", - regs->trap); - _stp_symbol_sprint(str, regs->nip); - _stp_string_cat(str, "\n"); + _stp_printf("--- Exception: %lx at ",regs->trap); + _stp_symbol_print(regs->nip); + _stp_print_char('\n'); lr = regs->link; - _stp_string_cat(str, " LR ="); - _stp_symbol_sprint(str, lr); - _stp_string_cat(str, "\n"); + _stp_print(" LR ="); + _stp_symbol_print(lr); + _stp_print_char('\n'); firstframe = 1; } else { - _stp_sprintf(str, "%lx ",regs->nip); - _stp_sprintf(str, "%lx ",regs->link); + _stp_printf("%p ",regs->nip); + _stp_printf("%p ",regs->link); } } |