From: Dmitry V. Levin Date: Tue, 17 Feb 2015 22:00:45 +0000 (+0000) Subject: Use printnum_int consistently X-Git-Tag: v4.10~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f55cca729fe462de76c9dffbd859c951a79e6c9d;p=strace Use printnum_int consistently * sock.c (sock_ioctl): Use printnum_int instead of printnum to print integer type. * stream.c (sys_getpmsg): Likewise. --- diff --git a/sock.c b/sock.c index ef6def45..6043607c 100644 --- a/sock.c +++ b/sock.c @@ -117,7 +117,7 @@ sock_ioctl(struct tcb *tcp, const unsigned int code, long arg) #ifdef SIOCATMARK case SIOCATMARK: #endif - printnum(tcp, arg, ", %#d"); + printnum_int(tcp, arg, ", %#d"); case SIOCSIFNAME: return 1; case SIOCGIFNAME: diff --git a/stream.c b/stream.c index ceb9e2d6..2aa6366c 100644 --- a/stream.c +++ b/stream.c @@ -190,7 +190,7 @@ sys_getpmsg(struct tcb *tcp) for (i = 1; i < 3; i++) printstrbufarg(tcp, tcp->u_arg[i], 1); /* pointer to band */ - printnum(tcp, tcp->u_arg[3], "%d"); + printnum_int(tcp, tcp->u_arg[3], "%d"); tprints(", "); /* pointer to flags */ if (tcp->u_arg[4] == 0)