libunwind-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Libunwind-devel] [PATCH] Fix x86-64 debug build -Wformat warning


From: Tommi Rantala
Subject: [Libunwind-devel] [PATCH] Fix x86-64 debug build -Wformat warning
Date: Fri, 5 Oct 2012 08:25:24 +0300

src/x86_64/Gstep.c: In function '_ULx86_64_step':
src/x86_64/Gstep.c:204:4: warning: unknown conversion type character 'r' in 
format [-Wformat]

diff --git a/src/x86_64/Gstep.c b/src/x86_64/Gstep.c
index 8d5e1f6..9fa0967 100644
--- a/src/x86_64/Gstep.c
+++ b/src/x86_64/Gstep.c
@@ -201,7 +201,7 @@ unw_step (unw_cursor_t *cursor)
       if (DWARF_IS_NULL_LOC (c->dwarf.loc[RBP]))
         {
          ret = 0;
-         Debug (2, "NULL %rbp loc, returning %d\n", ret);
+         Debug (2, "NULL %%rbp loc, returning %d\n", ret);
          return ret;
         }
       if (!DWARF_IS_NULL_LOC (c->dwarf.loc[RIP]))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]