Use %td instead of %tx for syscall number
authorRobert Swiecki <swiecki@google.com>
Tue, 10 May 2016 13:47:13 +0000 (15:47 +0200)
committerRobert Swiecki <swiecki@google.com>
Tue, 10 May 2016 13:47:13 +0000 (15:47 +0200)
subproc.c

index 0dc8a25bfc66556ae07d0c6afc613d89a232aaed..1ed666fd2e433cee49e2e52e267a88f027079aae 100644 (file)
--- a/subproc.c
+++ b/subproc.c
@@ -183,13 +183,13 @@ static void subprocSeccompViolation(struct nsjconf_t *nsjconf, siginfo_t * si)
 
        uintptr_t sc, arg1, arg2, arg3, arg4, arg5, arg6, sp, pc;
        if (sscanf
-           (buf, "%tx %tx %tx %tx %tx %tx %tx %tx %tx", &sc, &arg1, &arg2, &arg3, &arg4, &arg5,
+           (buf, "%td %tx %tx %tx %tx %tx %tx %tx %tx", &sc, &arg1, &arg2, &arg3, &arg4, &arg5,
             &arg6, &sp, &pc) != 9) {
                return;
        }
 
        LOG_W
-           ("PID: %d, Syscall number: %tx, Arguments: %#tx, %#tx, %#tx, %#tx, %#tx, %#tx, SP: %#tx, PC: %#tx",
+           ("PID: %d, Syscall number: %td, Arguments: %#tx, %#tx, %#tx, %#tx, %#tx, %#tx, SP: %#tx, PC: %#tx",
             (int)si->si_pid, sc, arg1, arg2, arg3, arg4, arg5, arg6, sp, pc);
 }