From: Paul Mackerras Date: Tue, 1 Oct 2019 23:04:09 +0000 (+1000) Subject: pppdump: Eliminate printf format warning by using %zd X-Git-Tag: ppp-2.4.8~16 X-Git-Url: http://git.ozlabs.org/?a=commitdiff_plain;h=e400854cda14e5718fd888418911d4bfba31b0f1;hp=7f2f0deae2e0055373ccdd995cd3027aca546549;p=ppp.git pppdump: Eliminate printf format warning by using %zd Signed-off-by: Paul Mackerras --- diff --git a/pppdump/pppdump.c b/pppdump/pppdump.c index 87c2e8f..130300a 100644 --- a/pppdump/pppdump.c +++ b/pppdump/pppdump.c @@ -320,7 +320,7 @@ dumpppp(f) ++r; ++r; if (endp - r > mru) - printf(" ERROR: length (%d) > MRU (%d)\n", + printf(" ERROR: length (%zd) > MRU (%d)\n", endp - r, mru); if (decompress && fcs == PPP_GOODFCS) { /* See if this is a CCP or compressed packet */