[PATCH] Fix cygwin build error with i386-linux-tdep.c

Hui Zhu teawater@gmail.com
Sun Aug 30 18:00:00 GMT 2009


On Sun, Aug 30, 2009 at 23:13, Jiang Jilin<freephp@gmail.com> wrote:
> 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?
>

Really?  what does it mean?

Hui



More information about the Gdb-patches mailing list