]> granicus.if.org Git - strace/blobdiff - syscall.c
ioctl: print unrecognized ioctl codes in _IOC(dir,type,nr,size) format
[strace] / syscall.c
index 343fa308354134b8fbec20a495ccf1df8693f4ae..a50910ffa072917e4b15cfcd0fae5dd84181586c 100644 (file)
--- a/syscall.c
+++ b/syscall.c
@@ -1379,7 +1379,7 @@ get_scno(struct tcb *tcp)
        if (errno)
                return -1;
        /* EABI syscall convention? */
-       if (scno != 0xef000000) {
+       if ((unsigned long) scno != 0xef000000) {
                /* No, it's OABI */
                if ((scno & 0x0ff00000) != 0x0f900000) {
                        fprintf(stderr, "pid %d unknown syscall trap 0x%08lx\n",