summaryrefslogtreecommitdiffstats
path: root/block/sed-opal.c
diff options
context:
space:
mode:
authorJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>2019-02-14 01:16:01 +0100
committerJens Axboe <axboe@kernel.dk>2019-04-06 11:09:12 -0600
commitb2f9c6eb3f5f44d2fded05856f69050d7170eeff (patch)
tree81eac25bac93cec4745319872ac6430d89c58307 /block/sed-opal.c
parentb68f09ecdeaa7d59397429cb95aa83f02b9bd107 (diff)
downloadlinux-stable-b2f9c6eb3f5f44d2fded05856f69050d7170eeff.tar.gz
linux-stable-b2f9c6eb3f5f44d2fded05856f69050d7170eeff.tar.bz2
linux-stable-b2f9c6eb3f5f44d2fded05856f69050d7170eeff.zip
block: sed-opal: print failed function address
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> Signed-off-by: David Kozub <zub@linux.fjfi.cvut.cz> Reviewed-by: Scott Bauer <sbauer@plzdonthack.me> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Jon Derrick <jonathan.derrick@intel.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/sed-opal.c')
-rw-r--r--block/sed-opal.c4
1 files 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