This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Trivial printf format warning fixes
- From: Eli Zaretskii <eliz at is dot elta dot co dot il>
- To: Jason R Thorpe <thorpej at wasabisystems dot com>
- Cc: Andreas Jaeger <aj at suse dot de>, gdb-patches at sources dot redhat dot com
- Date: Tue, 23 Apr 2002 14:11:48 +0300 (IDT)
- Subject: Re: [PATCH] Trivial printf format warning fixes
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.