]> granicus.if.org Git - strace/commitdiff
tests/pselect6.c: fix potential output mismatch
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Apr 2016 00:03:09 +0000 (00:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 18 Apr 2016 01:10:44 +0000 (01:10 +0000)
* tests/pselect6.c (main): In the last case of printing pselect6
syscall, print the last argument the same way as in other cases.

Reported-by: Steve McIntyre <steve@einval.com>
tests/pselect6.c

index 358f9c617ae18a69ec31e9c2ec5af794da9b20e0..49258a9ca646ecb9f1fa37c8b5ab1c66bbaac1dc 100644 (file)
@@ -137,8 +137,9 @@ int main(int ac, char **av)
 
        tm.ts.tv_nsec = 222222222;
        assert(pselect(0, NULL, NULL, NULL, &tm.ts, &mask) == -1);
-       puts("pselect6(0, NULL, NULL, NULL, {0, 222222222}, {[HUP CHLD], 8})"
-            " = ? ERESTARTNOHAND (To be restarted if no handler)");
+       printf("pselect6(0, NULL, NULL, NULL, {0, 222222222}, {[HUP CHLD], %u})"
+              " = ? ERESTARTNOHAND (To be restarted if no handler)\n",
+              NSIG / 8);
        puts("--- SIGALRM {si_signo=SIGALRM, si_code=SI_KERNEL} ---");
 
        puts("+++ exited with 0 +++");