]> git.sur5r.net Git - u-boot/blobdiff - cpu/mpc8xx/video.c
Fix printf() format issues with sizeof_t types by using %zu
[u-boot] / cpu / mpc8xx / video.c
index 8bf8e469ccf6c92fbb42819c96dd0233a56bf383..ef91165602df3fcad7a1902eef8a7edb74d55484 100644 (file)
@@ -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]);
                }