summaryrefslogtreecommitdiffstats
path: root/drivers/ata
diff options
context:
space:
mode:
authorTomas Henzl <thenzl@redhat.com>2022-08-10 19:59:09 +0200
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>2022-08-17 18:40:29 +0200
commit16169fb781827b82a4c0261195184dcc97a57af7 (patch)
treea7cb60cb7f3ae87edfc115cabfde0bc35147e345 /drivers/ata
parentLinux 6.0-rc1 (diff)
downloadlinux-16169fb781827b82a4c0261195184dcc97a57af7.tar.xz
linux-16169fb781827b82a4c0261195184dcc97a57af7.zip
ata: libata-core: Print timeout value when internal command times
Printing the timeout value may help in troubleshooting failures. Signed-off-by: David Milburn <dmilburn@redhat.com> Signed-off-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: Damien Le Moal <damien.lemoal@opensource.wdc.com>
Diffstat (limited to 'drivers/ata')
-rw-r--r--drivers/ata/libata-core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c
index 826d41f341e4..9478194740e0 100644
--- a/drivers/ata/libata-core.c
+++ b/drivers/ata/libata-core.c
@@ -1578,8 +1578,8 @@ static unsigned ata_exec_internal_sg(struct ata_device *dev,
else
ata_qc_complete(qc);
- ata_dev_warn(dev, "qc timeout (cmd 0x%x)\n",
- command);
+ ata_dev_warn(dev, "qc timeout after %u msecs (cmd 0x%x)\n",
+ timeout, command);
}
spin_unlock_irqrestore(ap->lock, flags);