diff options
author | Patrick McHardy <kaber@trash.net> | 2010-11-12 11:04:13 +0100 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2010-11-12 11:04:13 +0100 |
commit | 3c8698333bb75e5d25b5df2a0f9bacd0e1a63f93 (patch) | |
tree | 863240d7c5e93113e8544c47a2b1992a13fea10e /src | |
parent | c52d892c62be8ee7bdff4e0af5b11cbf16f65e1c (diff) |
backtrace: fix warnings on 64 bit
src/backtrace.c: In function 'translate_addresses_buf':
src/backtrace.c:158: warning: field width should have type 'int', but argument 4 has type 'long unsigned int'
src/backtrace.c:158: warning: field width should have type 'int', but argument 4 has type 'long unsigned int'
Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src')
-rw-r--r-- | src/backtrace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backtrace.c b/src/backtrace.c index 51be050..3ceda17 100644 --- a/src/backtrace.c +++ b/src/backtrace.c @@ -134,7 +134,7 @@ static char **translate_addresses_buf(const char *obj_file, const void *obj_base if (!found) { total += snprintf(buf, len, "0x%0*lx in \?\?() from %s at \?\?:0", - 2 * sizeof(void *), + (int)(2 * sizeof(void *)), (long unsigned int)(obj_base + addr[naddr - 1]), obj_file) + 1; } else { @@ -151,7 +151,7 @@ static char **translate_addresses_buf(const char *obj_file, const void *obj_base filename = h + 1; } total += snprintf(buf, len, "0x%0*lx in %s() from %s at %s:%u", - 2 * sizeof(void *), + (int)(2 * sizeof(void *)), (long unsigned int)(obj_base + addr[naddr - 1]), name, obj_file, filename ? filename : "??", |