]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
ide-acpi: use %*ph to print small buffer
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 30 Jul 2020 16:10:42 +0000 (19:10 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 4 Aug 2020 01:48:47 +0000 (18:48 -0700)
Use %*ph format to print small buffer as hex string.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/ide/ide-acpi.c

index 7d4e5c08f133ef74b101b86184a22deb6340ebe5..49dc5430bf3ec239ce037b18135a29e35ec5aedc 100644 (file)
@@ -320,10 +320,7 @@ static int do_drive_set_taskfiles(ide_drive_t *drive,
                u8 *gtf = (u8 *)(gtf_address + ix * REGS_PER_GTF);
                struct ide_cmd cmd;
 
-               DEBPRINT("(0x1f1-1f7): "
-                        "hex: %02x %02x %02x %02x %02x %02x %02x\n",
-                        gtf[0], gtf[1], gtf[2],
-                        gtf[3], gtf[4], gtf[5], gtf[6]);
+               DEBPRINT("(0x1f1-1f7): hex: %7ph\n", gtf);
 
                if (!ide_acpigtf) {
                        DEBPRINT("_GTF execution disabled\n");