From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id TBi6BXL8R2pmCyQAWB0awg (envelope-from ) for ; Fri, 03 Jul 2026 14:16:18 -0400 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZebctXHN; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 072461E024; Fri, 03 Jul 2026 14:16:18 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-5.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id D737F1E024 for ; Fri, 03 Jul 2026 14:16:15 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 09CA54BA23C3 for ; Fri, 3 Jul 2026 18:16:14 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 09CA54BA23C3 Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZebctXHN Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 871064BA2E0B for ; Fri, 3 Jul 2026 18:15:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 871064BA2E0B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 871064BA2E0B Authentication-Results: sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783102548; cv=none; b=UvKbRKXca3yISayZPdeR3cswinRBFRPM4rVm2M8kn8RFWfFGZ5RwLOcGmL3kZrKl1xz6RTtJ4feVvqWbY5/JiPAXD7ez1rizmje27h26Dtlkkdh9P3fC1GRdzkaCG/c1XPdsIWaneT3yPLEDKn23Ary7urmeL17DpssQ4jsJ3bI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1783102548; c=relaxed/simple; bh=J3fL5wMV3y+bUNLM0wBUhdgv1jf3DP1tGmrQR7Rp/CI=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=E4VDEHm9GLMUNuhVN4Gr/GFN1AIR/2yvzRWozonx4P40G9gJvEUYZlfc3KxcQOtiqStWsD/l/q45dfgzDcymhRN+RZSFhTloJ7jli85es1To3Y2Rdkox6MFnj97JI/+3lAjCqn3J1dketbMkAcYKOvEoZZR2hrYiXyuC5tC9IOk= ARC-Authentication-Results: i=1; sourceware.org; dkim=policy (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=ZebctXHN reason="signing key too small" DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 871064BA2E0B Received: from eig-obgw-6006b.ext.cloudfilter.net ([10.0.30.211]) by cmsmtp with ESMTPS id fiBJwAFttVGUKfiQWwtZAe; Fri, 03 Jul 2026 18:15:48 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id fiQVwrKhNxg8YfiQVwNqAn; Fri, 03 Jul 2026 18:15:47 +0000 X-Authority-Analysis: v=2.4 cv=R44DGcRX c=1 sm=1 tr=0 ts=6a47fc53 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=RAioF0-LDSMA:10 a=ItBw4LHWJt0A:10 a=T_Alst9gAAAA:8 a=kTTgqygYG8RIClYC72YA:9 a=DvZ5ixILWSEuw56YIEpp:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:Date:References:In-Reply-To :Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=Pl34WNgQUbwwAVnKCuwZY4jVCkW+2NsFNweRkerqFS4=; b=ZebctXHNxpV73GHsnE0qpZOcc/ h+i/P4UDXdXfvqbK85ASvZQGfFJ7MPXUJhIlfFXy6VLqFm2vJ9+av6tq4MpvDu9mSgxqLQvvPmwCb EgTgRpxfHnvHKHs3fVbsIJBFh; Received: from 75-166-225-82.hlrn.qwest.net ([75.166.225.82]:45262 helo=prentzel) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.99.2) (envelope-from ) id 1wfiQV-00000003XC4-03HI; Fri, 03 Jul 2026 12:15:47 -0600 From: Tom Tromey To: Pedro Alves Cc: Tom Tromey , Lancelot SIX , Tankut Baris Aktemur , gdb-patches@sourceware.org Subject: Re: [PATCH] gdb, amd-dbgapi-target: use PRIu64 and PRIu32 In-Reply-To: <20854a3f-d7ab-4fdb-b694-a12a16315de0@palves.net> (Pedro Alves's message of "Fri, 3 Jul 2026 14:47:25 +0100") References: <20260701142846.2566570-1-tankutbaris.aktemur@amd.com> <6ae6dd2b-9577-4711-a0c8-93663a28e997@amd.com> <87echlf8s5.fsf@tromey.com> <20854a3f-d7ab-4fdb-b694-a12a16315de0@palves.net> X-Attribution: Tom Date: Fri, 03 Jul 2026 12:15:45 -0600 Message-ID: <87wlvcgcry.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.225.82 X-Source-L: No X-Exim-ID: 1wfiQV-00000003XC4-03HI X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-225-82.hlrn.qwest.net (prentzel) [75.166.225.82]:45262 X-Source-Auth: tom+tromey.com X-Email-Count: 4 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfD9jREwJ0NcRHdVZY/R+Vjpm38wFkLYQWEofhR2HM2yv2onEh+6W8JUYYwpCK0VkmiaMH24U8ullVV5eBH0QzJqQQlzHmEvmvVHreITSapXibtH+5gbB DbVA9oTzJqhoIxThZF5MlZxMinprlhOmstw6NoZEKMNG9dq+vmVAfRX70RXd56ivbfjn0nhYJjCho+E+h/Zm98xmR5LaD1ARV0E= X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org >>>>> "Pedro" == Pedro Alves writes: Pedro> Agreed. And it's also a portability hazard, like other printf Pedro> formats, as you have to match the printf format to the type of Pedro> the variable. Yeah, I meant to point this out as well. For pulongest you really only need to know whether the type is signed; and we could easily fix that if we cared to. Pedro> (std::cout << ... << ... tends to be unreadable too IMHO, but we don't use that, thankfully). I thought about this for ui_file but meh. It's kind of i18n-unfriendly as well. Pedro> {fmt} would be better, but that's either a new external dependency, or Pedro> bump to c++20 for std::format, or c++23 for widely available std::print. I looked into this but it is also i18n-unfriendly, since as far as I can tell it requires you to either give up gettext or give up any sort of format checking. For printf this isn't an issue because GCC understands that _() is "transparent". Also of course switching to fmt would be a colossal effort. Tom