From: Tomas Henzl Date: Wed, 10 Aug 2022 17:59:09 +0000 (+0200) Subject: ata: libata-core: Print timeout value when internal command times X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=16169fb781827b82a4c0261195184dcc97a57af7;p=linux.git ata: libata-core: Print timeout value when internal command times Printing the timeout value may help in troubleshooting failures. Signed-off-by: David Milburn Signed-off-by: Tomas Henzl Signed-off-by: Damien Le Moal --- diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 826d41f341e4a..9478194740e09 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);