tools/intel_bios_reader: use correct printf format for size_t
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 10 Feb 2011 11:00:49 +0000 (11:00 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 10 Feb 2011 11:00:49 +0000 (11:00 +0000)
intel_bios_reader.c: In function ‘dump_backlight_info’:
intel_bios_reader.c:192:22: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 2 has type ‘unsigned int’ [-Wformat]

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
tools/intel_bios_reader.c

index c4b39b0..92fd13d 100644 (file)
@@ -188,7 +188,7 @@ static void dump_backlight_info(void)
        printf("Backlight info block (len %d):\n", block->size);
 
        if (sizeof(struct blc_struct) != backlight->blcstruct_size) {
-               printf("\tBacklight struct sizes don't match (expected %lu, got %u), skipping\n",
+               printf("\tBacklight struct sizes don't match (expected %zu, got %u), skipping\n",
                     sizeof(struct blc_struct), backlight->blcstruct_size);
                return;
        }