|
|
4210fa |
From 8bd4477e3a28a6c7a32f2c1e338ed3ec8394f2e4 Mon Sep 17 00:00:00 2001
|
|
|
4210fa |
From: "Richard W.M. Jones" <rjones@redhat.com>
|
|
|
4210fa |
Date: Wed, 25 Feb 2015 18:03:37 +0000
|
|
|
4210fa |
Subject: [PATCH 1/2] fallback: Fix comparison between signed and unsigned in
|
|
|
4210fa |
debugging code.
|
|
|
4210fa |
MIME-Version: 1.0
|
|
|
4210fa |
Content-Type: text/plain; charset=UTF-8
|
|
|
4210fa |
Content-Transfer-Encoding: 8bit
|
|
|
4210fa |
|
|
|
4210fa |
fallback.c: In function ‘update_boot_order’:
|
|
|
4210fa |
fallback.c:334:17: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
|
|
|
4210fa |
for (j = 0 ; j < size / sizeof (CHAR16); j++)
|
|
|
4210fa |
^
|
|
|
4210fa |
fallback.c: In function ‘add_to_boot_list’:
|
|
|
4210fa |
fallback.c:402:16: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
|
|
|
4210fa |
for (i = 0; i < s; i++) {
|
|
|
4210fa |
^
|
|
|
4210fa |
|
|
|
4210fa |
Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
|
|
|
4210fa |
---
|
|
|
4210fa |
fallback.c | 4 ++--
|
|
|
4210fa |
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
4210fa |
|
|
|
4210fa |
diff --git a/fallback.c b/fallback.c
|
|
|
4210fa |
index d10fb62..e739b78 100644
|
|
|
4210fa |
--- a/fallback.c
|
|
|
4210fa |
+++ b/fallback.c
|
|
|
4210fa |
@@ -328,7 +328,7 @@ update_boot_order(void)
|
|
|
4210fa |
|
|
|
4210fa |
#ifdef DEBUG_FALLBACK
|
|
|
4210fa |
Print(L"nbootorder: %d\nBootOrder: ", size / sizeof (CHAR16));
|
|
|
4210fa |
- int j;
|
|
|
4210fa |
+ UINTN j;
|
|
|
4210fa |
for (j = 0 ; j < size / sizeof (CHAR16); j++)
|
|
|
4210fa |
Print(L"%04x ", newbootorder[j]);
|
|
|
4210fa |
Print(L"\n");
|
|
|
4210fa |
@@ -395,7 +395,7 @@ add_to_boot_list(EFI_FILE_HANDLE fh, CHAR16 *dirname, CHAR16 *filename, CHAR16 *
|
|
|
4210fa |
#ifdef DEBUG_FALLBACK
|
|
|
4210fa |
{
|
|
|
4210fa |
UINTN s = DevicePathSize(dp);
|
|
|
4210fa |
- int i;
|
|
|
4210fa |
+ UINTN i;
|
|
|
4210fa |
UINT8 *dpv = (void *)dp;
|
|
|
4210fa |
for (i = 0; i < s; i++) {
|
|
|
4210fa |
if (i > 0 && i % 16 == 0)
|
|
|
4210fa |
--
|
|
|
4210fa |
2.1.0
|
|
|
4210fa |
|