svn commit: r300634 - head/sys/boot/efi/loader

Conrad E. Meyer cem at FreeBSD.org
Wed May 25 00:13:02 UTC 2016


Author: cem
Date: Wed May 25 00:13:01 2016
New Revision: 300634
URL: https://svnweb.freebsd.org/changeset/base/300634

Log:
  efi loader: Match format string to EFI_ERROR_CODE()
  
  Silence a format specifier warning.
  
  Sponsored by:	EMC / Isilon Storage Division

Modified:
  head/sys/boot/efi/loader/main.c

Modified: head/sys/boot/efi/loader/main.c
==============================================================================
--- head/sys/boot/efi/loader/main.c	Tue May 24 23:41:36 2016	(r300633)
+++ head/sys/boot/efi/loader/main.c	Wed May 25 00:13:01 2016	(r300634)
@@ -923,7 +923,7 @@ command_efi_set(int argc, char *argv[])
 	    EFI_VARIABLE_NON_VOLATILE | EFI_VARIABLE_RUNTIME_ACCESS | EFI_VARIABLE_BOOTSERVICE_ACCESS,
 	    strlen(val) + 1, val);
 	if (EFI_ERROR(err)) {
-		printf("Failed to set variable: error %d\n", EFI_ERROR_CODE(err));
+		printf("Failed to set variable: error %lu\n", EFI_ERROR_CODE(err));
 		return (CMD_ERROR);
 	}
 	return (CMD_OK);
@@ -954,7 +954,7 @@ command_efi_unset(int argc, char *argv[]
 	cpy8to16(var, wvar, sizeof(wvar));
 	err = RS->SetVariable(wvar, &guid, 0, 0, NULL);
 	if (EFI_ERROR(err)) {
-		printf("Failed to unset variable: error %d\n", EFI_ERROR_CODE(err));
+		printf("Failed to unset variable: error %lu\n", EFI_ERROR_CODE(err));
 		return (CMD_ERROR);
 	}
 	return (CMD_OK);


More information about the svn-src-all mailing list