public inbox for glibc-cvs@sourceware.org help / color / mirror / Atom feed
From: Adhemerval Zanella <azanella@sourceware.org> To: glibc-cvs@sourceware.org Subject: [glibc] stdlib: Fix tst-rand48.c printf types Date: Thu, 31 Mar 2022 12:13:57 +0000 (GMT) [thread overview] Message-ID: <20220331121357.AED823838016@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3ff447f7dfcb79740e30f6247c1d4d5344244a35 commit 3ff447f7dfcb79740e30f6247c1d4d5344244a35 Author: Adhemerval Zanella <adhemerval.zanella@linaro.org> Date: Thu Mar 24 15:22:55 2022 -0300 stdlib: Fix tst-rand48.c printf types Checked on x86_64-linux-gnu and i686-linux-gnu. Diff: --- stdlib/tst-rand48.c | 6 +++--- 1 file 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; }
reply other threads:[~2022-03-31 12:13 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220331121357.AED823838016@sourceware.org \ --to=azanella@sourceware.org \ --cc=glibc-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).