diff mbox

lib: fwts_uefi: update uefi status codes to UEFI 2.6

Message ID 1466151872-22718-1-git-send-email-ivan.hu@canonical.com
State Accepted
Headers show

Commit Message

Ivan Hu June 17, 2016, 8:24 a.m. UTC
Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
---
 src/lib/include/fwts_uefi.h | 1 +
 src/lib/src/fwts_uefi.c     | 3 ++-
 2 files changed, 3 insertions(+), 1 deletion(-)

Comments

Colin Ian King June 17, 2016, 8:26 a.m. UTC | #1
On 17/06/16 11:24, Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>  src/lib/include/fwts_uefi.h | 1 +
>  src/lib/src/fwts_uefi.c     | 3 ++-
>  2 files changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/src/lib/include/fwts_uefi.h b/src/lib/include/fwts_uefi.h
> index 1a6b20b..5c6ef1c 100644
> --- a/src/lib/include/fwts_uefi.h
> +++ b/src/lib/include/fwts_uefi.h
> @@ -88,6 +88,7 @@ enum {
>  #define EFI_INVALID_LANGUAGE		(32 | HIGH_BIT_SET)
>  #define EFI_COMPROMISED_DATA		(33 | HIGH_BIT_SET)
>  #define EFI_IP_ADDRESS_CONFLICT		(34 | HIGH_BIT_SET)
> +#define EFI_HTTP_ERROR			(35 | HIGH_BIT_SET)
>  
>  #define FWTS_UEFI_UNSPECIFIED_TIMEZONE 0x07FF
>  
> diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c
> index 18293bb..871188a 100644
> --- a/src/lib/src/fwts_uefi.c
> +++ b/src/lib/src/fwts_uefi.c
> @@ -458,7 +458,8 @@ static uefistatus_info uefistatus_info_table[] = {
>  	{ EFI_END_OF_FILE,		"EFI_END_OF_FILE",		"The end of the file was reached." },
>  	{ EFI_INVALID_LANGUAGE,		"EFI_INVALID_LANGUAGE",		"The language specified was invalid." },
>  	{ EFI_COMPROMISED_DATA,		"EFI_COMPROMISED_DATA",		"The security status of the data is unknown or compromised and the data must be updated or replaced to restore a valid security status." },
> -	{ EFI_IP_ADDRESS_CONFLICT,		"EFI_IP_ADDRESS_CONFLICT",		"There is an address conflict address allocation." },
> +	{ EFI_IP_ADDRESS_CONFLICT,	"EFI_IP_ADDRESS_CONFLICT",	"There is an address conflict address allocation." },
> +	{ EFI_HTTP_ERROR,		"EFI_HTTP_ERROR",		"A HTTP error occurred during the network operation." },
>  	{ ~0, NULL, NULL }
>  };
>  
> 
Acked-by: Colin Ian King <colin.king@canonical.com>
Alex Hung June 17, 2016, 9:07 a.m. UTC | #2
On 2016-06-17 04:24 PM, Ivan Hu wrote:
> Signed-off-by: Ivan Hu <ivan.hu@canonical.com>
> ---
>   src/lib/include/fwts_uefi.h | 1 +
>   src/lib/src/fwts_uefi.c     | 3 ++-
>   2 files changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/include/fwts_uefi.h b/src/lib/include/fwts_uefi.h
> index 1a6b20b..5c6ef1c 100644
> --- a/src/lib/include/fwts_uefi.h
> +++ b/src/lib/include/fwts_uefi.h
> @@ -88,6 +88,7 @@ enum {
>   #define EFI_INVALID_LANGUAGE		(32 | HIGH_BIT_SET)
>   #define EFI_COMPROMISED_DATA		(33 | HIGH_BIT_SET)
>   #define EFI_IP_ADDRESS_CONFLICT		(34 | HIGH_BIT_SET)
> +#define EFI_HTTP_ERROR			(35 | HIGH_BIT_SET)
>
>   #define FWTS_UEFI_UNSPECIFIED_TIMEZONE 0x07FF
>
> diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c
> index 18293bb..871188a 100644
> --- a/src/lib/src/fwts_uefi.c
> +++ b/src/lib/src/fwts_uefi.c
> @@ -458,7 +458,8 @@ static uefistatus_info uefistatus_info_table[] = {
>   	{ EFI_END_OF_FILE,		"EFI_END_OF_FILE",		"The end of the file was reached." },
>   	{ EFI_INVALID_LANGUAGE,		"EFI_INVALID_LANGUAGE",		"The language specified was invalid." },
>   	{ EFI_COMPROMISED_DATA,		"EFI_COMPROMISED_DATA",		"The security status of the data is unknown or compromised and the data must be updated or replaced to restore a valid security status." },
> -	{ EFI_IP_ADDRESS_CONFLICT,		"EFI_IP_ADDRESS_CONFLICT",		"There is an address conflict address allocation." },
> +	{ EFI_IP_ADDRESS_CONFLICT,	"EFI_IP_ADDRESS_CONFLICT",	"There is an address conflict address allocation." },
> +	{ EFI_HTTP_ERROR,		"EFI_HTTP_ERROR",		"A HTTP error occurred during the network operation." },
>   	{ ~0, NULL, NULL }
>   };
>
>

Acked-by: Alex Hung <alex.hung@canonical.com>
diff mbox

Patch

diff --git a/src/lib/include/fwts_uefi.h b/src/lib/include/fwts_uefi.h
index 1a6b20b..5c6ef1c 100644
--- a/src/lib/include/fwts_uefi.h
+++ b/src/lib/include/fwts_uefi.h
@@ -88,6 +88,7 @@  enum {
 #define EFI_INVALID_LANGUAGE		(32 | HIGH_BIT_SET)
 #define EFI_COMPROMISED_DATA		(33 | HIGH_BIT_SET)
 #define EFI_IP_ADDRESS_CONFLICT		(34 | HIGH_BIT_SET)
+#define EFI_HTTP_ERROR			(35 | HIGH_BIT_SET)
 
 #define FWTS_UEFI_UNSPECIFIED_TIMEZONE 0x07FF
 
diff --git a/src/lib/src/fwts_uefi.c b/src/lib/src/fwts_uefi.c
index 18293bb..871188a 100644
--- a/src/lib/src/fwts_uefi.c
+++ b/src/lib/src/fwts_uefi.c
@@ -458,7 +458,8 @@  static uefistatus_info uefistatus_info_table[] = {
 	{ EFI_END_OF_FILE,		"EFI_END_OF_FILE",		"The end of the file was reached." },
 	{ EFI_INVALID_LANGUAGE,		"EFI_INVALID_LANGUAGE",		"The language specified was invalid." },
 	{ EFI_COMPROMISED_DATA,		"EFI_COMPROMISED_DATA",		"The security status of the data is unknown or compromised and the data must be updated or replaced to restore a valid security status." },
-	{ EFI_IP_ADDRESS_CONFLICT,		"EFI_IP_ADDRESS_CONFLICT",		"There is an address conflict address allocation." },
+	{ EFI_IP_ADDRESS_CONFLICT,	"EFI_IP_ADDRESS_CONFLICT",	"There is an address conflict address allocation." },
+	{ EFI_HTTP_ERROR,		"EFI_HTTP_ERROR",		"A HTTP error occurred during the network operation." },
 	{ ~0, NULL, NULL }
 };