summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--nss/tst-nss-test1.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 44c9453930..c9b49ca290 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-11-27 Joseph Myers <joseph@codesourcery.com>
+
+ * nss/tst-nss-test1.c (do_test): Use %td printf format for pointer
+ difference, not %ju.
+
2014-11-26 Joseph Myers <joseph@codesourcery.com>
* include/libc-internal.h (ignore_value): New macro.
diff --git a/nss/tst-nss-test1.c b/nss/tst-nss-test1.c
index 4e443d4539..c5750e0956 100644
--- a/nss/tst-nss-test1.c
+++ b/nss/tst-nss-test1.c
@@ -21,7 +21,7 @@ do_test (void)
if (p->pw_uid != *np || strncmp (p->pw_name, "name", 4) != 0
|| atol (p->pw_name + 4) != *np)
{
- printf ("passwd entry %ju wrong (%s, %u)\n",
+ printf ("passwd entry %td wrong (%s, %u)\n",
np - pwdids, p->pw_name, p->pw_uid);
retval = 1;
break;