This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [Prec/RFA] fix build error of prec in cygwin
> Date: Fri, 22 May 2009 17:06:17 +0800
> From: Hui Zhu <teawater@gmail.com>
> Cc: Joel Brobecker <brobecker@adacore.com>, gdb-patches@sourceware.org
>
> On Fri, May 22, 2009 at 14:55, Eli Zaretskii <eliz@gnu.org> wrote:
> >> Date: Thu, 21 May 2009 23:05:45 -0700
> >> From: Joel Brobecker <brobecker@adacore.com>
> >>
> >> > "%zu"
> >>
> >> Are we allowed to use %z?
> >
> > No, I don't think so.
> >
> >> I thought that %z is C99
> >
> > It is.
> >
> > I think the best we can do with C90 is use %lu and cast to
> > `unsigned long'.
> >
> I make a new patch use %lu and unsigned long. Please help me review it.
Looks okay to me, as far as using sizeof in printf-like statements is
concerned.