From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6984 invoked by alias); 23 Apr 2002 10:13:21 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 6948 invoked from network); 23 Apr 2002 10:13:17 -0000 Received: from unknown (HELO is.elta.co.il) (199.203.121.2) by sources.redhat.com with SMTP; 23 Apr 2002 10:13:17 -0000 Received: from is (is [199.203.121.2]) by is.elta.co.il (8.9.3/8.8.8) with SMTP id OAA26010; Tue, 23 Apr 2002 14:11:48 +0300 (IDT) Date: Tue, 23 Apr 2002 03:13:00 -0000 From: Eli Zaretskii X-Sender: eliz@is To: Jason R Thorpe cc: Andreas Jaeger , gdb-patches@sources.redhat.com Subject: Re: [PATCH] Trivial printf format warning fixes In-Reply-To: <20020423000142.D18016@dr-evil.shagadelic.org> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2002-04/txt/msg00837.txt.bz2 On Tue, 23 Apr 2002, Jason R Thorpe wrote: > On Tue, Apr 23, 2002 at 08:20:26AM +0200, Andreas Jaeger wrote: > > > ISO C99 introduced 't' for ptrdiff_t, so we could use '%td' here if we > > have an ISO C99 compiler. > > Yes, but I don't think it's safe to assume that all platforms on which > GDB is uses are C99 compliant. I agree. I think "%ld" is good enough.