mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
pvattest: Improve error reporting
Map the Ultravisor return code 0x2 to "Invalid UV command" string. This results in better error messages. Signed-off-by: Steffen Eiden <seiden@linux.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
This commit is contained in:
committed by
Jan Höppner
parent
8c2f6790fe
commit
148460c235
@@ -156,6 +156,8 @@ int uvio_open(const char *uv_path, GError **error)
|
||||
const char *uvio_uv_rc_to_str(const int rc)
|
||||
{
|
||||
switch (rc) {
|
||||
case 0x02:
|
||||
return _("Invalid UV command");
|
||||
case 0x106:
|
||||
return _("Unsupported attestation request version");
|
||||
case 0x108:
|
||||
|
||||
Reference in New Issue
Block a user