Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix printf format mismatches
  • Loading branch information
Andreas Schwab committed Nov 2, 2012
1 parent f7934be commit b5dcacb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
@@ -1,3 +1,9 @@
2012-11-02 Andreas Schwab <schwab@linux-m68k.org>

* 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 <roland@hack.frob.com>

* aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
Expand Down
2 changes: 1 addition & 1 deletion iconvdata/bug-iconv8.c
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion iconvdata/bug-iconv9.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit b5dcacb

Please sign in to comment.