slim_pro.c: Fix format string related compiler warning

This commit is contained in:
Harald Welte 2015-11-07 15:57:16 +01:00
parent effcaa75bf
commit 6a2d224311
1 changed files with 1 additions and 1 deletions

View File

@ -932,7 +932,7 @@ unsigned char GetByte(int a_iCurrentIndex, char a_cAlgo)
* *
*************************************************************/
if((a_iCurrentIndex & 1023) == 0)
printf("%d bytes done (%d%%)\n", a_iCurrentIndex, (a_iCurrentIndex * 100) / g_ispDataSize);
printf("%d bytes done (%zu%%)\n", a_iCurrentIndex, (a_iCurrentIndex * 100) / g_ispDataSize);
if(a_iCurrentIndex >= g_ispDataSize)
return (unsigned char)0xff;
else return g_ispData[a_iCurrentIndex];