提交 b2f9c6eb 编写于 作者: J Jonas Rabenstein 提交者: Jens Axboe

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: NJonas Rabenstein <jonas.rabenstein@studium.uni-erlangen.de>
Signed-off-by: NDavid Kozub <zub@linux.fjfi.cvut.cz>
Reviewed-by: NScott Bauer <sbauer@plzdonthack.me>
Reviewed-by: NChristoph Hellwig <hch@lst.de>
Reviewed-by: Jon Derrick <jonathan.derrick@intel.com
Signed-off-by: NJens Axboe <axboe@kernel.dk>
上级 b68f09ec
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册