libata: Fix ata_err_string()
Add proper error string output for ATA_ERR_NCQ and ATA_ERR_NODEV_HINT instead of returning "unknown error". Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Tejun Heo <tj@kernel.org>
This commit is contained in:
parent
79487259a4
commit
54fb131b32
@ -1483,6 +1483,10 @@ static const char *ata_err_string(unsigned int err_mask)
|
||||
return "invalid argument";
|
||||
if (err_mask & AC_ERR_DEV)
|
||||
return "device error";
|
||||
if (err_mask & AC_ERR_NCQ)
|
||||
return "NCQ error";
|
||||
if (err_mask & AC_ERR_NODEV_HINT)
|
||||
return "Polling detection error";
|
||||
return "unknown error";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user