Re: Hint for a port of a package
>>>>> On Sat, 2 Nov 2002 17:59:25 -0800, Randolph Chung <tausq@debian.org> said:
>> ANSI specifies %z for size_t so better would be:
>>
>> syslog(LOG_WARNING, "cmd_q(): malloc(%z) returned NULL",
>> sizeof(struct ordq_item_t));
Randolph> indeed this is more correct, unfortunately gcc-2.96
Randolph> doesn't support this. so until we get 3.x, we'll have to
Randolph> stick with %ld for now :(
%z is a "length modifier", so the correct format to print size_t
(unsigned) is:
%zu
This does work on gcc-2.96.
--david
Reply to: