From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 7857) id 265203857C55; Thu, 16 Feb 2023 15:14:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 265203857C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1676560481; bh=FtvMrl9iaoOlj/VYupy49KAXbk9LEDhCwMaXnslu4nc=; h=From:To:Subject:Date:From; b=LdK0V/2r2/9WRFYylw64M/Ah8wLsAZO0IAy4YKZb6B/YO8Ts8hTN3kq7uxtwnSL1G QStHHC0tAINLxI1TiL5h3rIr8oHP2z6zWJzbifIyKc1Be8lMTQxGOLBtLqNkwaggGS h7rxKte1DENaAhkmfJe5EN57PjlnA0uODJo9gEJ8= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Matthias Kretz To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r11-10530] libstdc++: printf format string fix in testsuite X-Act-Checkin: gcc X-Git-Author: Matthias Kretz X-Git-Refname: refs/heads/releases/gcc-11 X-Git-Oldrev: e4ddaf9dd48763227ab93c8fe93f7d04080c07a1 X-Git-Newrev: cd94f444c4ad1e1f16664f6768c696e9ac3a7f57 Message-Id: <20230216151441.265203857C55@sourceware.org> Date: Thu, 16 Feb 2023 15:14:41 +0000 (GMT) List-Id: https://gcc.gnu.org/g:cd94f444c4ad1e1f16664f6768c696e9ac3a7f57 commit r11-10530-gcd94f444c4ad1e1f16664f6768c696e9ac3a7f57 Author: Matthias Kretz Date: Thu Feb 2 12:28:39 2023 +0100 libstdc++: printf format string fix in testsuite Signed-off-by: Matthias Kretz libstdc++-v3/ChangeLog: * testsuite/experimental/simd/tests/bits/verify.h (verify::verify): Use %zx for size_t in format string. (cherry picked from commit 07e4648b4ab86a76ab040ea18a756e388652c882) Diff: --- libstdc++-v3/testsuite/experimental/simd/tests/bits/verify.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libstdc++-v3/testsuite/experimental/simd/tests/bits/verify.h b/libstdc++-v3/testsuite/experimental/simd/tests/bits/verify.h index 82016c66802..ffa3e7f4cda 100644 --- a/libstdc++-v3/testsuite/experimental/simd/tests/bits/verify.h +++ b/libstdc++-v3/testsuite/experimental/simd/tests/bits/verify.h @@ -137,7 +137,7 @@ public: { if (m_failed) [&] { - __builtin_fprintf(stderr, "%s:%d: (%s):\nInstruction Pointer: %x\n" + __builtin_fprintf(stderr, "%s:%d: (%s):\nInstruction Pointer: %zx\n" "Assertion '%s' failed.\n", file, line, func, m_ip, cond); (print(extra_info, int()), ...);