Skip to contentSkip to conversation

block: sed-opal: print failed function address

PATCH New Jonas Rabenstein 1 participant 1 message Jan 16, 2019

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 8/16 block: sed-opal: print failed function address

Add function address (and if available its symbol) to the message if a step function fails.

---
 block/sed-opal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
block/sed-opal.c +2 -2
index 1332547e5a99..4225f23b2165 100644
@@ -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
Signature · 1 line
2.20.1