ata: libata: improve ata_read_log_page() error message
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Mon, 15 Nov 2021 03:37:46 +0000 (12:37 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Nov 2021 08:48:44 +0000 (09:48 +0100)
commit08a667e440d72864f0732c0084d1c1d370d28a84
tree0904dc85a9bf78b4cc366d4182abac7e7fa6a477
parent4ca2a26feeb435a439a206bc22a0e5df256e9a88
ata: libata: improve ata_read_log_page() error message

commit 23ef63d5e14f916c5bba39128ebef395859d7c0f upstream.

If ata_read_log_page() fails to read a log page, the ata_dev_err() error
message only print the page number, omitting the log number. In case of
error, facilitate debugging by also printing the log number.

Cc: stable@kernel.org # 5.15
Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Tested-by: Matthew Perkowski <mgperkow@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/ata/libata-core.c