pppdump: Eliminate printf format warning by using %zd
authorPaul Mackerras <paulus@ozlabs.org>
Tue, 1 Oct 2019 23:04:09 +0000 (09:04 +1000)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 1 Oct 2019 23:04:09 +0000 (09:04 +1000)
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
pppdump/pppdump.c

index 87c2e8f1ac69e95ca080058ad403975ea10a76ba..130300a17d348046dbc4a81100f8fbfcf3d9f0a5 100644 (file)
@@ -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 */