dect
/
libdect
Archived
13
0
Fork 0

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>
This commit is contained in:
Patrick McHardy 2010-11-12 11:04:13 +01:00
parent c52d892c62
commit 3c8698333b
1 changed files with 2 additions and 2 deletions

View File

@ -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 : "??",