summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdeel Mujahid <adeelbm@outlook.com>2019-05-06 20:26:06 +0300
committerDave Watson <davejwatson@fb.com>2019-05-06 10:26:06 -0700
commit2270e2c6038830cd16f7141c8fb1cd20a94c5812 (patch)
tree30c7a65b7ae46d461060e6c5fda4dcdd75cd41bb
parent861caf878215c4bda57f2780de862c6d1cb4e4c1 (diff)
downloadlibunwind-2270e2c6038830cd16f7141c8fb1cd20a94c5812.tar.gz
Fix format specifier for int64_t:29 (#117)
clang 8: > x86_64/Gstash_frame.c:113:47: warning: format specifies type 'long' but the argument has type 'int' [-Wformat] gcc 8: > x86_64/Gstash_frame.c:113:15: warning: format ‘%li’ expects argument of type ‘long int’, but argument 3 has type ‘int’ [-Wformat=]
-rw-r--r--src/x86_64/Gstash_frame.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/x86_64/Gstash_frame.c b/src/x86_64/Gstash_frame.c
index 8a091dc1..2a44f873 100644
--- a/src/x86_64/Gstash_frame.c
+++ b/src/x86_64/Gstash_frame.c
@@ -110,7 +110,7 @@ tdep_stash_frame (struct dwarf_cursor *d, struct dwarf_reg_state *rs)
}
else if (f->frame_type == UNW_X86_64_FRAME_ALIGNED) {
- Debug (4, " aligned frame, offset %li\n", f->cfa_reg_offset);
+ Debug (4, " aligned frame, offset %i\n", f->cfa_reg_offset);
}
/* PLT and guessed RBP-walked frames are handled in unw_step(). */
else {