]> granicus.if.org Git - strace/commitdiff
Print 64-bit instruction pointers zero padded
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Feb 2013 19:01:58 +0000 (19:01 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 5 Feb 2013 19:01:58 +0000 (19:01 +0000)
* syscall.c (printcall): Print 64-bit instruction pointers zero padded.

syscall.c

index 9d025741bc565c4ec1710feeba28ca73ddabfef9..3851c9dc259e3e30f9e35d9ebda17ea144bdb8f8 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -738,10 +738,10 @@ printcall(struct tcb *tcp)
 # ifdef S390
        tprintf("[%08lx] ", psw);
 # elif S390X
-       tprintf("[%16lx] ", psw);
+       tprintf("[%016lx] ", psw);
 # endif
 #elif defined(X86_64) || defined(X32)
-       tprintf("[%16lx] ", (unsigned long) x86_64_regs.rip);
+       tprintf("[%016lx] ", (unsigned long) x86_64_regs.rip);
 #elif defined(IA64)
        long ip;
 
@@ -845,7 +845,7 @@ printcall(struct tcb *tcp)
        tprintf("[%08lx] ", pc);
 #elif defined(TILE)
 # ifdef _LP64
-       tprintf("[%16lx] ", tile_regs.pc);
+       tprintf("[%016lx] ", tile_regs.pc);
 # else
        tprintf("[%08lx] ", tile_regs.pc);
 # endif