Skip to content

Commit b2f9c6e

Browse files
nonapodeaxboe
authored andcommitted
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>
1 parent b68f09e commit b2f9c6e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎block/sed-opal.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,8 +394,8 @@ static int next(struct opal_dev *dev)
394394

395395
error = step->fn(dev, step->data);
396396
if (error) {
397-
pr_debug("Error on step function: %d with error %d: %s\n",
398-
state, error,
397+
pr_debug("Step %d (%pS) failed with error %d: %s\n",
398+
state, step->fn, error,
399399
opal_error_to_human(error));
400400

401401
/* For each OPAL command we do a discovery0 then we

0 commit comments

Comments
 (0)