From 8f94f1e6c01648ff41dec9b44bd7a8b6a230671e Mon Sep 17 00:00:00 2001 From: Tommi Rantala Date: Fri, 24 Aug 2012 12:45:16 +0300 Subject: [PATCH] PPC: add missing debug level in Debug() calls in Gstep.c ppc32/Gstep.c:116: warning: comparison between pointer and integer ppc32/Gstep.c:116: warning: comparison with string literal results in unspecified behavior ppc32/Gstep.c:116: warning: initialization makes integer from pointer without a cast ppc32/Gstep.c:116: warning: passing argument 2 of 'fprintf' makes pointer from integer without a cast /usr/powerpc-linux-gnu/include/stdio.h:333: note: expected 'const char *__restrict__' but argument is of type 'int' --- src/ppc32/Gstep.c | 8 ++++---- src/ppc64/Gstep.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/ppc32/Gstep.c b/src/ppc32/Gstep.c index d146e82d..efb993a6 100644 --- a/src/ppc32/Gstep.c +++ b/src/ppc32/Gstep.c @@ -99,8 +99,8 @@ unw_step (unw_cursor_t * cursor) if ((ret = dwarf_get (&c->dwarf, back_chain_loc, &c->dwarf.cfa)) < 0) { - Debug - ("Unable to retrieve CFA from back chain in stack frame - %d\n", + Debug (2, + "Unable to retrieve CFA from back chain in stack frame - %d\n", ret); return ret; } @@ -113,8 +113,8 @@ unw_step (unw_cursor_t * cursor) if ((ret = dwarf_get (&c->dwarf, lr_save_loc, &c->dwarf.ip)) < 0) { - Debug - ("Unable to retrieve IP from lr save in stack frame - %d\n", + Debug (2, + "Unable to retrieve IP from lr save in stack frame - %d\n", ret); return ret; } diff --git a/src/ppc64/Gstep.c b/src/ppc64/Gstep.c index 20b22b51..e9ab39f8 100644 --- a/src/ppc64/Gstep.c +++ b/src/ppc64/Gstep.c @@ -100,8 +100,8 @@ unw_step (unw_cursor_t * cursor) if ((ret = dwarf_get (&c->dwarf, back_chain_loc, &c->dwarf.cfa)) < 0) { - Debug - ("Unable to retrieve CFA from back chain in stack frame - %d\n", + Debug (2, + "Unable to retrieve CFA from back chain in stack frame - %d\n", ret); return ret; } @@ -114,8 +114,8 @@ unw_step (unw_cursor_t * cursor) if ((ret = dwarf_get (&c->dwarf, lr_save_loc, &c->dwarf.ip)) < 0) { - Debug - ("Unable to retrieve IP from lr save in stack frame - %d\n", + Debug (2, + "Unable to retrieve IP from lr save in stack frame - %d\n", ret); return ret; }