* [PATCH 08/16] block: sed-opal: print failed function address
@ 2018-03-19 18:36 Jonas Rabenstein
0 siblings, 0 replies; only message in thread
From: Jonas Rabenstein @ 2018-03-19 18:36 UTC (permalink / raw)
To: Jens Axboe, Scott Bauer, Jonathan Derrick, linux-block, linux-kernel
Cc: Jonas Rabenstein
Add function address (and if available its symbol) to the message if a
step function fails.
Signed-off-by: Jonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
---
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 1332547e5a99..4225f23b2165 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 wit 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2019-01-16 23:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-03-19 18:36 [PATCH 08/16] block: sed-opal: print failed function address Jonas Rabenstein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®