diff options
| author | Russell Currey <[email protected]> | 2023-02-10 19:03:53 +1100 |
|---|---|---|
| committer | Michael Ellerman <[email protected]> | 2023-02-12 22:12:38 +1100 |
| commit | ebdcd42347157647ffe6c4d2808e4e5c146475d3 (patch) | |
| tree | bc7ef60478e4166fe3b601dae72c6f991efdb86c | |
| parent | 899d9b8fee66da820eadc60b2a70090eb83db761 (diff) | |
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 <[email protected]>
Signed-off-by: Andrew Donnellan <[email protected]>
Reviewed-by: Stefan Berger <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
| -rw-r--r-- | arch/powerpc/platforms/pseries/plpks.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/powerpc/platforms/pseries/plpks.c b/arch/powerpc/platforms/pseries/plpks.c index cee06fb9a370..e5755443d4a4 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; } |