From: Russell Currey Date: Fri, 10 Feb 2023 08:03:53 +0000 (+1100) Subject: powerpc/pseries: Log hcall return codes for PLPKS debug X-Git-Tag: v6.3-rc1~87^2~44 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ebdcd42347157647ffe6c4d2808e4e5c146475d3;p=users%2Fdwmw2%2Flinux.git 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: Russell Currey Signed-off-by: Andrew Donnellan Reviewed-by: Stefan Berger Signed-off-by: Michael Ellerman Link: https://lore.kernel.org/r/20230210080401.345462-19-ajd@linux.ibm.com --- diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c index cee06fb9a3707..e5755443d4a44 100644 --- a/arch/powerpc/platforms/pseries/plpks.c +++ b/arch/powerpc/platforms/pseries/plpks.c @@ -117,6 +117,8 @@ static int pseries_status_to_err(int rc) err = -EINVAL; } + pr_debug("Converted hypervisor code %d to Linux %d\n", rc, err); + return err; }