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:
Steffen Eiden
2022-08-01 13:42:45 +02:00
committed by Jan Höppner
parent 8c2f6790fe
commit 148460c235
+2
View File
@@ -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: