mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
commands/efi/tpm: Refine the status of log event
1. Use macro GRUB_ERR_NONE instead of hard code 0. 2. Keep lowercase of the first char for the status string of log event. Signed-off-by: Lu Ken <ken.lu@intel.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
1b3d97bdf8
commit
922898573e
1 file changed
+5
-5
@@ -135,17 +135,17 @@ grub_efi_log_event_status (grub_efi_status_t status)
|
|||||||
switch (status)
|
switch (status)
|
||||||
{
|
{
|
||||||
case GRUB_EFI_SUCCESS:
|
case GRUB_EFI_SUCCESS:
|
||||||
return 0;
|
return GRUB_ERR_NONE;
|
||||||
case GRUB_EFI_DEVICE_ERROR:
|
case GRUB_EFI_DEVICE_ERROR:
|
||||||
return grub_error (GRUB_ERR_IO, N_("Command failed"));
|
return grub_error (GRUB_ERR_IO, N_("command failed"));
|
||||||
case GRUB_EFI_INVALID_PARAMETER:
|
case GRUB_EFI_INVALID_PARAMETER:
|
||||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("Invalid parameter"));
|
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("invalid parameter"));
|
||||||
case GRUB_EFI_BUFFER_TOO_SMALL:
|
case GRUB_EFI_BUFFER_TOO_SMALL:
|
||||||
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("Output buffer too small"));
|
return grub_error (GRUB_ERR_BAD_ARGUMENT, N_("output buffer too small"));
|
||||||
case GRUB_EFI_NOT_FOUND:
|
case GRUB_EFI_NOT_FOUND:
|
||||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, N_("TPM unavailable"));
|
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, N_("TPM unavailable"));
|
||||||
default:
|
default:
|
||||||
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, N_("Unknown TPM error"));
|
return grub_error (GRUB_ERR_UNKNOWN_DEVICE, N_("unknown TPM error"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user