提交 ebdcd423 编写于 作者: R Russell Currey 提交者: Michael Ellerman

powerpc/pseries: Log hcall return codes for PLPKS debug

The plpks code converts hypervisor return codes into their Linux
equivalents so that users can understand them.  Having access to the
original return codes is really useful for debugging, so add a
pr_debug() so we don't lose information from the conversion.
Signed-off-by: NRussell Currey <ruscur@russell.cc>
Signed-off-by: NAndrew Donnellan <ajd@linux.ibm.com>
Reviewed-by: NStefan Berger <stefanb@linux.ibm.com>
Signed-off-by: NMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230210080401.345462-19-ajd@linux.ibm.com
上级 899d9b8f
...@@ -117,6 +117,8 @@ static int pseries_status_to_err(int rc) ...@@ -117,6 +117,8 @@ static int pseries_status_to_err(int rc)
err = -EINVAL; err = -EINVAL;
} }
pr_debug("Converted hypervisor code %d to Linux %d\n", rc, err);
return err; return err;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册