[PATCH 2/2] os: print offset as unsigned int, not long unsigned int
Peter Hutterer
peter.hutterer at who-t.net
Thu Jun 28 22:35:00 PDT 2012
pnprintf() takes unsigned int for %u
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
To be squashed into
Print backtrace in a signal-safe manner
os/backtrace.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/os/backtrace.c b/os/backtrace.c
index 6acc81d..daac60c 100644
--- a/os/backtrace.c
+++ b/os/backtrace.c
@@ -62,8 +62,8 @@ xorg_backtrace(void)
i,
mod,
info.dli_sname,
- (long unsigned int)((char *) array[i] -
- (char *) info.dli_saddr),
+ (unsigned int)((char *) array[i] -
+ (char *) info.dli_saddr),
array[i]);
else
ErrorFSigSafe(
@@ -71,8 +71,8 @@ xorg_backtrace(void)
i,
mod,
info.dli_fbase,
- (long unsigned int)((char *) array[i] -
- (char *) info.dli_fbase),
+ (unsigned int)((char *) array[i] -
+ (char *) info.dli_fbase),
array[i]);
}
ErrorFSigSafe("\n");
--
1.7.10.2
More information about the xorg-devel
mailing list