[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Libunwind-devel] [PATCH 04/19] PPC: add missing debug level in Debug()
From: |
Tommi Rantala |
Subject: |
[Libunwind-devel] [PATCH 04/19] PPC: add missing debug level in Debug() calls in Gstep.c |
Date: |
Wed, 5 Sep 2012 14:50:12 +0300 |
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 d146e82..efb993a 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 20b22b5..e9ab39f 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;
}
--
1.7.9.5
- [Libunwind-devel] [PATCH 00/19] misc fixes, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 04/19] PPC: add missing debug level in Debug() calls in Gstep.c,
Tommi Rantala <=
- [Libunwind-devel] [PATCH 02/19] Check __builtin___clear_cache() at configuration time, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 03/19] HPPA: fix common_init() bitrot, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 01/19] Annotate unused argument in mark_as_used() to avoid -Wextra compiler noise, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 05/19] PPC: return failure from the unw_get_proc_info() stub, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 06/19] Remove free() NULL pointer checks in load_debug_frame() error path, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 08/19] Rename `backtrace' to `do_backtrace' in tests/Gtest-init.cxx, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 07/19] Eliminate one heap allocation in dwarf_find_debug_frame(), Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 09/19] Check correct variable for offset in tests/Gtest-init.cxx, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 11/19] Do not print garbage proc info in tests/Gtest-bt.c, Tommi Rantala, 2012/09/05
- [Libunwind-devel] [PATCH 14/19] Provide manual page for `unw_backtrace()', Tommi Rantala, 2012/09/05