• Bartlomiej Zolnierkiewicz's avatar
    [ide] ide_dump_atapi_status() printk readability fix · 80a47504
    Bartlomiej Zolnierkiewicz authored
    From: Gunther Mayer <gunther.mayer@gmx.net>
    
    this improves logic and readability:
    - remove blank from: AbortedCommand (as other flags)
    - add blank and {} to error= line
    - clean up: remove 2 lines and extra printk
    
    before:
      hdd: status error: status=0x7f { DriveReady DeviceFault SeekComplete 
    DataRequest CorrectedError Index Error }
      hdd: status error: error=0x7fIllegalLengthIndication EndOfMedia 
    Aborted Command MediaChangeRequested LastFailedSense 0x07
    
    after:
      hdd: status error: status=0x7f { DriveReady DeviceFault SeekComplete 
    DataRequest CorrectedError Index Error }
      hdd: status error: error=0x7f { IllegalLengthIndication EndOfMedia 
    AbortedCommand MediaChangeRequested LastFailedSense=0x07 }
    Signed-off-by: default avatarBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
    80a47504
ide-lib.c 16.7 KB