diff options
author | Damien Le Moal <damien.lemoal@wdc.com> | 2018-05-09 09:28:09 +0900 |
---|---|---|
committer | Tejun Heo <tj@kernel.org> | 2018-05-10 11:43:20 -0700 |
commit | 54fb131b325c663b368b2be150f6875124df1d76 (patch) | |
tree | 310f6383ddde3f6a1ea2f87422f06ae7dd0c58ac /drivers | |
parent | 79487259a4c90acf020f6ce1c63bb1db9ad3fc4d (diff) | |
download | linux-54fb131b325c663b368b2be150f6875124df1d76.tar.bz2 |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/ata/libata-eh.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/ata/libata-eh.c b/drivers/ata/libata-eh.c index 6c9d3fc5212f..e85ab60b462c 100644 --- a/drivers/ata/libata-eh.c +++ b/drivers/ata/libata-eh.c @@ -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"; } |