summaryrefslogtreecommitdiffstats
path: root/drivers/ide/ide-cd_verbose.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide/ide-cd_verbose.c')
-rw-r--r--drivers/ide/ide-cd_verbose.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd_verbose.c b/drivers/ide/ide-cd_verbose.c
index 6ed7ca07133..6490a2dea96 100644
--- a/drivers/ide/ide-cd_verbose.c
+++ b/drivers/ide/ide-cd_verbose.c
@@ -326,7 +326,7 @@ void ide_cd_log_error(const char *name, struct request *failed_command,
printk(KERN_ERR " The failed \"%s\" packet command "
"was: \n \"", s);
- for (i = 0; i < sizeof(failed_command->cmd); i++)
+ for (i = 0; i < BLK_MAX_CDB; i++)
printk(KERN_CONT "%02x ", failed_command->cmd[i]);
printk(KERN_CONT "\"\n");
}