ide-acpi support warning fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 7 Feb 2007 17:19:42 +0000 (18:19 +0100)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Wed, 7 Feb 2007 17:19:42 +0000 (18:19 +0100)
drivers/ide/ide-acpi.c: In function 'ide_acpi_get_timing':
drivers/ide/ide-acpi.c:537: warning: format '%x' expects type 'unsigned int', but argument 4 has type 'long unsigned int'

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
drivers/ide/ide-acpi.c

index 1eb734951dc9f99b6ac04dbee058fe9bbc11b876..17aea65d7dd2af7dcc3a5ffce10fc9d3ec08dd7e 100644 (file)
@@ -532,9 +532,10 @@ void ide_acpi_get_timing(ide_hwif_t *hwif)
            out_obj->buffer.length != sizeof(struct GTM_buffer)) {
                kfree(output.pointer);
                printk(KERN_ERR
-                      "%s: unexpected _GTM length (0x%x)[should be 0x%x] or addr (0x%p)\n",
-                      __FUNCTION__, out_obj->buffer.length,
-                      sizeof(struct GTM_buffer), out_obj->buffer.pointer);
+                       "%s: unexpected _GTM length (0x%x)[should be 0x%zx] or "
+                       "addr (0x%p)\n",
+                       __FUNCTION__, out_obj->buffer.length,
+                       sizeof(struct GTM_buffer), out_obj->buffer.pointer);
                return;
        }