Skip to content

Commit

Permalink
ide: fix printk() levels in ide_dump_ata[pi]_error()
Browse files Browse the repository at this point in the history
Fixes "<3>" in error messages like this one:

hdc: cdrom_decode_status: error=0x40 <3>{ LastFailedSense=0x04 }

Reported-by: Martin Lottermoser <Martin.Lottermoser@t-online.de>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
bzolnier committed May 22, 2009
1 parent e3b29f0 commit 26bfcf2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/ide/ide-lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void ide_dump_sector(ide_drive_t *drive)

static void ide_dump_ata_error(ide_drive_t *drive, u8 err)
{
printk(KERN_ERR "{ ");
printk(KERN_CONT "{ ");
if (err & ATA_ABORTED)
printk(KERN_CONT "DriveStatusError ");
if (err & ATA_ICRC)
Expand Down Expand Up @@ -121,7 +121,7 @@ static void ide_dump_ata_error(ide_drive_t *drive, u8 err)

static void ide_dump_atapi_error(ide_drive_t *drive, u8 err)
{
printk(KERN_ERR "{ ");
printk(KERN_CONT "{ ");
if (err & ATAPI_ILI)
printk(KERN_CONT "IllegalLengthIndication ");
if (err & ATAPI_EOM)
Expand Down

0 comments on commit 26bfcf2

Please sign in to comment.