about summary refs log tree commit diff
path: root/stdlib
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-24 15:22:55 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-03-31 09:13:14 -0300
commit3ff447f7dfcb79740e30f6247c1d4d5344244a35 (patch)
tree5fc397137144cc2201c8c55b711a0c76b8c0fc00 /stdlib
parentbc02f1fa2fb302eb8a486794c6b7e4811229b81e (diff)
downloadglibc-3ff447f7dfcb79740e30f6247c1d4d5344244a35.tar.gz
glibc-3ff447f7dfcb79740e30f6247c1d4d5344244a35.tar.xz
glibc-3ff447f7dfcb79740e30f6247c1d4d5344244a35.zip
stdlib: Fix tst-rand48.c printf types
Checked on x86_64-linux-gnu and i686-linux-gnu.
Diffstat (limited to 'stdlib')
-rw-r--r--stdlib/tst-rand48.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/tst-rand48.c b/stdlib/tst-rand48.c
index 973c62e1eb..ec8195c6d5 100644
--- a/stdlib/tst-rand48.c
+++ b/stdlib/tst-rand48.c
@@ -26,7 +26,7 @@ do_test (void)
   if (xsp[0] != 0x330e || xsp[1] != 0x5432 || xsp[2] != 0x9876)
     {
       puts ("srand48(0x98765432) didn't set correct value");
-      printf ("  expected: { %04hx, %04hx, %04hx }\n", 0x330e, 0x5432, 0x9876);
+      printf ("  expected: { %04x, %04x, %04x }\n", 0x330e, 0x5432, 0x9876);
       printf ("  seen:     { %04hx, %04hx, %04hx }\n", xsp[0], xsp[1], xsp[2]);
       result = 1;
     }
@@ -76,7 +76,7 @@ do_test (void)
   if (xsp[0] != 0x62f2 || xsp[1] != 0xf474 || xsp[2] != 0x9e88)
     {
       puts ("seed48() did not install the values correctly");
-      printf ("  expected: { %04hx, %04hx, %04hx }\n", 0x62f2, 0xf474, 0x9e88);
+      printf ("  expected: { %04x, %04x, %04x }\n", 0x62f2, 0xf474, 0x9e88);
       printf ("  seen:     { %04hx, %04hx, %04hx }\n", xsp[0], xsp[1], xsp[2]);
       result = 1;
     }
@@ -215,7 +215,7 @@ do_test (void)
   if (xsp[0] != 0x0637 || xsp[1] != 0x7acd || xsp[2] != 0xdbec)
     {
       puts ("seed48() did not install the values correctly");
-      printf ("  expected: { %04hx, %04hx, %04hx }\n", 0x0637, 0x7acd, 0xdbec);
+      printf ("  expected: { %04x, %04x, %04x }\n", 0x0637, 0x7acd, 0xdbec);
       printf ("  seen:     { %04hx, %04hx, %04hx }\n", xsp[0], xsp[1], xsp[2]);
       result = 1;
     }