Bad printf modifiers for 'size_t' arguments
Brought to you by:
giraffedata
When using 'size_t' arguments, you have to use modifiers like '%zu'. A plain '%u' will generate warnings like
--
#include <stdio.h>
int main()
{
size_t a=1;
printf("%u\n", a);
}
--
LANG=C gcc -Wall /tmp/foo.c
/tmp/foo.c: In function 'main':
/tmp/foo.c:5: warning: format '%u' expects type 'unsigned int', but argument 2 has type 'size_t'
Attached patch fixes these issues
patch against 1.13.07
patch against 1.21.00