From: Dmitry V. Levin Date: Thu, 30 Jun 2016 22:14:51 +0000 (+0000) Subject: msghdr.c: print unrecognized struct cmsghdr.cmsg_type in hex X-Git-Tag: v4.13~82 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6c30aecaf3a041f09294d46a2d4aa01de0f1987d;p=strace msghdr.c: print unrecognized struct cmsghdr.cmsg_type in hex * msghdr.c (print_cmsg_type_data): Use %#x format when printing struct cmsghdr.cmsg_type as an integer. --- diff --git a/msghdr.c b/msghdr.c index c15542cb..b377be94 100644 --- 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); } }