[PATCH] Fix bunch of printf warnings

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/OpenBSC@lists.osmocom.org/.

Jan Engelhardt jengelh at inai.de
Thu Oct 23 12:47:26 UTC 2014


On Thursday 2014-10-23 14:39, Holger Hans Peter Freyther wrote:

>On Thu, Oct 23, 2014 at 10:24:57AM +0200, ☎ wrote:
>
>> Good catch, I didn't notice it. Maybe we should just use size_t for all the length
>> functions in libosmo*? That's what size_t was invented for after all :)
>
>> > it looks like a candidate for ping-pong games on 32bit/64bit userland
>> > on GNU/Linux. What is the type here? unsigned int - size_t?
>
>I can't quote the ISO C specification. So what type is the result of
>"unsigned int - size_t"?

size_t, because it is of higher rank.
(The specifier to use is %zu.)




More information about the OpenBSC mailing list