Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 25 May 2016 00:13:01 +0000 (UTC)
From:      "Conrad E. Meyer" <cem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r300634 - head/sys/boot/efi/loader
Message-ID:  <201605250013.u4P0D1rj093061@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605250013.u4P0D1rj093061>