diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2013-07-02 12:18:22 +0200 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2013-07-02 12:18:22 +0200 |
commit | 38eab5d6ea5627233b781f1bc68c2b264e8ee774 (patch) | |
tree | 7f07d30c879d2391acd4b36aa07c4de82b1e0aa2 | |
parent | 519af5ad34fa19fb48e2bc6539135fe0852210c3 (diff) | |
download | strace-38eab5d6ea5627233b781f1bc68c2b264e8ee774.tar.gz strace-38eab5d6ea5627233b781f1bc68c2b264e8ee774.tar.bz2 strace-38eab5d6ea5627233b781f1bc68c2b264e8ee774.tar.xz |
In debug output, show waitpid status with 6 hex digits, not 4
This shows event byte values better (without variable offset):
[wait(0x01057f) = 29491] WIFSTOPPED,sig=SIGTRAP,EVENT_FORK (1)
[wait(0x80057f) = 29492] WIFSTOPPED,sig=SIGTRAP,EVENT_STOP (128)
^^
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
-rw-r--r-- | strace.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -2039,7 +2039,7 @@ trace(void) e = "STOP"; sprintf(evbuf, ",EVENT_%s (%u)", e, event); } - fprintf(stderr, " [wait(0x%04x) = %u] %s%s\n", status, pid, buf, evbuf); + fprintf(stderr, " [wait(0x%06x) = %u] %s%s\n", status, pid, buf, evbuf); } /* Look up 'pid' in our table. */ |