]> granicus.if.org Git - strace/commitdiff
msghdr.c: print unrecognized struct cmsghdr.cmsg_type in hex
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 30 Jun 2016 22:14:51 +0000 (22:14 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Thu, 30 Jun 2016 22:14:51 +0000 (22:14 +0000)
* msghdr.c (print_cmsg_type_data): Use %#x format when printing
struct cmsghdr.cmsg_type as an integer.

msghdr.c

index c15542cba8693a75bf712cf127e1682910bf06fc..b377be94ac67fcd632b85e7e70ce1968fddb6dd6 100644 (file)
--- a/msghdr.c
+++ b/msghdr.c
@@ -259,7 +259,7 @@ print_cmsg_type_data(struct tcb *tcp, const int cmsg_level, const int cmsg_type,
                }
                break;
        default:
-               tprintf("%u", cmsg_type);
+               tprintf("%#x", cmsg_type);
        }
 }