From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4479 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: Am I using PRIxPTR wrong? Musl-libc complains, glibc doesn't Date: Tue, 14 Jan 2014 16:20:10 -0500 Message-ID: <20140114212010.GD24286@brightrain.aerifal.cx> References: <20140114210601.GF1685@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1389734419 16152 80.91.229.3 (14 Jan 2014 21:20:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 14 Jan 2014 21:20:19 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4483-gllmg-musl=m.gmane.org@lists.openwall.com Tue Jan 14 22:20:26 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1W3BPL-0007FB-4B for gllmg-musl@plane.gmane.org; Tue, 14 Jan 2014 22:20:23 +0100 Original-Received: (qmail 24550 invoked by uid 550); 14 Jan 2014 21:20:22 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24539 invoked from network); 14 Jan 2014 21:20:22 -0000 Content-Disposition: inline In-Reply-To: <20140114210601.GF1685@port70.net> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4479 Archived-At: On Tue, Jan 14, 2014 at 10:06:01PM +0100, Szabolcs Nagy wrote: > * David Wuertele [2014-01-14 20:36:36 +0000]: > > ** Both native (x86_64 glibc) and target (arm musl-libc) define > > ** PRIxPTR as "lx", but uintptr_t as unsigned int: > > musl defines it to "x" on 32bit archs > > please check > > arm-linux-musleabishf-gcc -E -dD inttypes.h > > in particular UINTPTR_MAX should be set to UINT32_MAX > and __PRIPTR to "" Maybe I misread; it looks like David's problem is finding "lx" in the header while the actual type is "unsigned int". Perhaps this is due to using an older version of musl where the "lx" was there incorrectly? Rich