diff mbox

ide: use %*ph to print small buffers

Message ID 1351259047-19327-1-git-send-email-andriy.shevchenko@linux.intel.com
State Rejected
Delegated to: David Miller
Headers show

Commit Message

Andy Shevchenko Oct. 26, 2012, 1:44 p.m. UTC
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
---
 drivers/ide/ide-acpi.c |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

Comments

David Miller Oct. 26, 2012, 6:55 p.m. UTC | #1
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: Fri, 26 Oct 2012 16:44:07 +0300

> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>

IDE is in deep freeze mode, critical and straight-forward bug fixes only,
I'm not applying this.
--
To unsubscribe from this list: send the line "unsubscribe linux-ide" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/ide/ide-acpi.c b/drivers/ide/ide-acpi.c
index f1a6796b..b768f46 100644
--- a/drivers/ide/ide-acpi.c
+++ b/drivers/ide/ide-acpi.c
@@ -310,10 +310,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");