From: Andreas Schwab Date: Fri, 2 Nov 2012 19:04:52 +0000 (+0100) Subject: Fix printf format mismatches X-Git-Tag: upstream/2.20~3041 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b5dcacb4502be39d30efd2f928b9a30c91eeb0d3;p=platform%2Fupstream%2Flinaro-glibc.git Fix printf format mismatches --- diff --git a/ChangeLog b/ChangeLog index a762760..798a816 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2012-11-02 Andreas Schwab + + * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments. + * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t + arguments. + 2012-11-02 Roland McGrath * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro. diff --git a/iconvdata/bug-iconv8.c b/iconvdata/bug-iconv8.c index 54c6be2..b91dc1d 100644 --- a/iconvdata/bug-iconv8.c +++ b/iconvdata/bug-iconv8.c @@ -24,7 +24,7 @@ do_test (void) ret = iconv(cd, &inbuf, &inbytesleft, &outbuf, &outbytesleft); iconv_close(cd); - printf("result: %ld %d %ld %d\n", ret, errno, inbytesleft, inbuf[0]); + printf("result: %zd %d %zd %d\n", ret, errno, inbytesleft, inbuf[0]); /* * result: -1 84 0 0 (84=EILSEQ) diff --git a/iconvdata/bug-iconv9.c b/iconvdata/bug-iconv9.c index e4ffd59..28f88d2 100644 --- a/iconvdata/bug-iconv9.c +++ b/iconvdata/bug-iconv9.c @@ -37,7 +37,7 @@ do_test (void) } if (in != inbuf + sizeof (inbuf) - 1) { - printf ("in advanced by %jd, expected %zu\n", + printf ("in advanced by %td, expected %zu\n", in - inbuf, sizeof (inbuf) - 1); res = 1; }