Fix printf() format issues with sizeof_t types by using %zu
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by: Wolfgang Denk <wd@denx.de>
This commit is contained in:
@@ -833,10 +833,10 @@ static void video_encoder_init (void)
|
||||
|
||||
puts ("[VIDEO ENCODER] Configuring the encoder...\n");
|
||||
|
||||
printf ("Sending %d bytes (@ %08lX) to I2C 0x%X:\n ",
|
||||
printf ("Sending %zu bytes (@ %08lX) to I2C 0x%lX:\n ",
|
||||
sizeof(video_encoder_data),
|
||||
(ulong)video_encoder_data,
|
||||
VIDEO_I2C_ADDR);
|
||||
(ulong)VIDEO_I2C_ADDR);
|
||||
for (i=0; i<sizeof(video_encoder_data); ++i) {
|
||||
printf(" %02X", video_encoder_data[i]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user