This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Fix cygwin build error with i386-linux-tdep.c
- From: Jiang Jilin <freephp at gmail dot com>
- To: Hui Zhu <teawater at gmail dot com>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>, Michael Snyder <msnyder at vmware dot com>
- Date: Sun, 30 Aug 2009 23:13:42 +0800
- Subject: Re: [PATCH] Fix cygwin build error with i386-linux-tdep.c
- References: <daef60380908300615u40f59a38t7d2c2f2252c5924d@mail.gmail.com>
On Sun, Aug 30, 2009 at 9:15 PM, Hui Zhu<teawater@gmail.com> wrote:
> Hi guys,
>
> ? if (tmpu32 > 499)
> ? ? {
> ? ? ? printf_unfiltered (_("Process record and replay target doesn't "
> - ? ? ? ? ? ? ? ? ? ? ? ? ? "support syscall number %u\n"), tmpu32);
> + ? ? ? ? ? ? ? ? ? ? ? ? ? "support syscall number %u\n"), (unsigned) tmpu32);
> ? ? ? return -1;
> ? ? }
>
Sorry, it's not clear to me.
when looking into the code, I found the type of tmpu32 is uint32_t,
why did the gcc complain "warning: unsigned int format, uint32_t arg
(arg 2)"?
%u doesn't mean unsigned int?
--
Thanks
Jiang