]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
block: sed-opal: print failed function address
authorJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Thu, 14 Feb 2019 00:16:01 +0000 (01:16 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Apr 2019 17:09:12 +0000 (11:09 -0600)
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>
block/sed-opal.c

index 5cb8034b53c8723a08264ce44dc5390d870c0497..1f246200b574a15050025d80c93a42d01552fa93 100644 (file)
@@ -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