[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1550103368-4605-10-git-send-email-zub@linux.fjfi.cvut.cz>
Date: Thu, 14 Feb 2019 01:16:01 +0100
From: David Kozub <zub@...ux.fjfi.cvut.cz>
To: Jens Axboe <axboe@...nel.dk>,
Jonathan Derrick <jonathan.derrick@...el.com>,
Scott Bauer <sbauer@...donthack.me>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org
Cc: Jonas Rabenstein <jonas.rabenstein@...dium.uni-erlangen.de>,
David Kozub <zub@...ux.fjfi.cvut.cz>
Subject: [PATCH 09/16] block: sed-opal: print failed function address
From: Jonas Rabenstein <jonas.rabenstein@...dium.uni-erlangen.de>
Add function address (and if available its symbol) to the message if a
step function fails.
Signed-off-by: Jonas Rabenstein <jonas.rabenstein@...dium.uni-erlangen.de>
Signed-off-by: David Kozub <zub@...ux.fjfi.cvut.cz>
Reviewed-by: Scott Bauer <sbauer@...donthack.me>
Reviewed-by: Christoph Hellwig <hch@....de>
Reviewed-by: Jon Derrick <jonathan.derrick@...el.com
---
block/sed-opal.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/block/sed-opal.c b/block/sed-opal.c
index 5cb8034b53c8..1f246200b574 100644
--- a/block/sed-opal.c
+++ b/block/sed-opal.c
@@ -394,8 +394,8 @@ static int next(struct opal_dev *dev)
error = step->fn(dev, step->data);
if (error) {
- pr_debug("Error on step function: %d with error %d: %s\n",
- state, error,
+ pr_debug("Step %d (%pS) failed with error %d: %s\n",
+ state, step->fn, error,
opal_error_to_human(error));
/* For each OPAL command we do a discovery0 then we
--
2.20.1
Powered by blists - more mailing lists