From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 2DjqDu8oV2HQAwAAWB0awg (envelope-from ) for ; Fri, 01 Oct 2021 11:27:43 -0400 Received: by simark.ca (Postfix, from userid 112) id 37C051EDF0; Fri, 1 Oct 2021 11:27:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 85C751E813 for ; Fri, 1 Oct 2021 11:27:42 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0AB913857800 for ; Fri, 1 Oct 2021 15:27:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AB913857800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1633102062; bh=yR6NGEo4WF7MorJnXI51QEyJtRcl+WunzY/YGy5v1HQ=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=NNQJ/GgivoWvJJ6J4lJMLUXXYKk1Z6bDdORCbT44HOCw6ISULLkBGCIReHr3BsEBx dndRY4vez6jv64p0OZnIruUQtJTxFh7DYfNYxMtsPXSQYY+hHJRMeKQqYjcRUrG5Un Jp4pj5EbAxlu/L24kSYlfSvLTWUvs2tivxZuy/OM= Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id 64BD13858406 for ; Fri, 1 Oct 2021 15:25:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 64BD13858406 Received: by smtp.gentoo.org (Postfix, from userid 559) id C8D38342B74; Fri, 1 Oct 2021 15:25:40 +0000 (UTC) Date: Fri, 1 Oct 2021 11:25:41 -0400 To: Luis Machado Subject: Re: [PATCH] Fix build failure for 32-bit targets Message-ID: Mail-Followup-To: Luis Machado , gdb-patches@sourceware.org References: <20211001115002.1681134-1-luis.machado@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="yWkiJ5mJM7iAqzPx" Content-Disposition: inline In-Reply-To: <20211001115002.1681134-1-luis.machado@linaro.org> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --yWkiJ5mJM7iAqzPx Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 01 Oct 2021 08:50, Luis Machado via Gdb-patches wrote: > When building master GDB, I ran into the following: >=20 > binutils-gdb/gdb/bt-utils.c: In function =E2=80=98int libbacktrace_print(= void*, uintptr_t, const char*, int, const char*)=E2=80=99: > binutils-gdb/gdb/bt-utils.c:93:44: error: format =E2=80=98%lx=E2=80=99 ex= pects argument of type =E2=80=98long unsigned int=E2=80=99, but argument 4 = has type =E2=80=98uintptr_t {aka unsigned int}=E2=80=99 [-Werror=3Dformat= =3D] > snprintf (buf, sizeof (buf), "0x%lx ", pc); >=20 > Fix this by using phex and %s as opposed to 0x%lx. wouldn't PRIxPTR fix it and be simpler ? -mike --yWkiJ5mJM7iAqzPx Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmFXKHUACgkQQWM7n+g3 9YF//hAA1lSePXpCNDgvzztO/LTRAUKy98hyBDao+QWNA4VNJLssvLEbb8htcvcO mMagC2zw61rFahZgMmkzZUsAH5lv/SxrOqKAhmPYzyBX2JUWRM3oe2bIgPJA+yXw 5AJvXFREe6ZtTe9lQxZO5+CI3kmIDiRwB+VQ206xha9CtL/z8uLGpV7BRXdFpREL XAYlgqmzj1E69JnouFiRkaKM81TECk6bTIgFbP59hwASwZPhdRYvdI/y4OPclg8I +R7DbJ6amd/pntIwagjXzjKVFc3gS2DDEaGO37+BgPGAKpGP5gGJdhRpOXvddgQv /F7I7JSVd5juwsEZIwvh33NGLQgLMLWj16jp0g7Qa4TW887jZ6SG+bUftBZOHwhb 4P0o5dHv4uCu0pSnkWAAa+0PkqzKm9DdzsqgYoeRth9/nAKRDtVcyziwNw12Okrg 8JLLZGjOwDWKzErwCGnSv9TmhjVG44oT5wZrZT2tf/tUfA6fI5XUCakhjJLXwoLb UNT4QEFBBx5k49wDFQBPseTd88sx3Ta5xfDfFAJPDGOgqRg/Y5yDGHKBB68YRKfB oluYNw/XtsYIfvXak3CuvOwolZ1vQE0vu2IBh2Hciis6cTRim/3C8NuqYE8nL1W/ Z0Xr25MArl1O+6zq4zOgh92G+TulrXue/m8A6QEpICaTlG16m8Q= =iJL/ -----END PGP SIGNATURE----- --yWkiJ5mJM7iAqzPx--