|
|
4e0e09 |
From 150873b00fdb2d5aca2e7c66d0545ad55801409a Mon Sep 17 00:00:00 2001
|
|
|
4e0e09 |
From: Peter Jones <pjones@redhat.com>
|
|
|
4e0e09 |
Date: Fri, 11 Oct 2019 10:44:53 -0400
|
|
|
4e0e09 |
Subject: [PATCH 44/63] Fix some 32-bit size_t format specifier errors
|
|
|
4e0e09 |
|
|
|
4e0e09 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
4e0e09 |
---
|
|
|
4e0e09 |
src/export.c | 8 ++++----
|
|
|
4e0e09 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
4e0e09 |
|
|
|
4e0e09 |
diff --git a/src/export.c b/src/export.c
|
|
|
4e0e09 |
index cfb021525ff..732b4bf30ad 100644
|
|
|
4e0e09 |
--- a/src/export.c
|
|
|
4e0e09 |
+++ b/src/export.c
|
|
|
4e0e09 |
@@ -149,7 +149,7 @@ overflow:
|
|
|
4e0e09 |
}
|
|
|
4e0e09 |
|
|
|
4e0e09 |
crc = efi_crc32(data, size - sizeof(uint32_t));
|
|
|
4e0e09 |
- debug("efi_crc32(%p, %lu) -> 0x%"PRIx32", expected 0x%"PRIx32,
|
|
|
4e0e09 |
+ debug("efi_crc32(%p, %zu) -> 0x%"PRIx32", expected 0x%"PRIx32,
|
|
|
4e0e09 |
data, size - sizeof(uint32_t), crc,
|
|
|
4e0e09 |
*(uint32_t*)(data + size - sizeof(uint32_t)));
|
|
|
4e0e09 |
|
|
|
4e0e09 |
@@ -282,7 +282,7 @@ efi_variable_import_efivar(uint8_t *data, size_t datasz, efi_variable_t **var_ou
|
|
|
4e0e09 |
}
|
|
|
4e0e09 |
|
|
|
4e0e09 |
crc = efi_crc32(data, datasz - sizeof(uint32_t));
|
|
|
4e0e09 |
- debug("efi_crc32(%p, %lu) -> 0x%"PRIx32", expected 0x%"PRIx32,
|
|
|
4e0e09 |
+ debug("efi_crc32(%p, %zu) -> 0x%"PRIx32", expected 0x%"PRIx32,
|
|
|
4e0e09 |
data, datasz - sizeof(uint32_t), crc,
|
|
|
4e0e09 |
*(uint32_t*)(data + datasz - sizeof(uint32_t)));
|
|
|
4e0e09 |
|
|
|
4e0e09 |
@@ -473,7 +473,7 @@ overflow:
|
|
|
4e0e09 |
ptr += var->data_size;
|
|
|
4e0e09 |
|
|
|
4e0e09 |
crc = efi_crc32(data, needed - sizeof(uint32_t));
|
|
|
4e0e09 |
- debug("efi_crc32(%p, %lu) -> 0x%"PRIx32,
|
|
|
4e0e09 |
+ debug("efi_crc32(%p, %zu) -> 0x%"PRIx32,
|
|
|
4e0e09 |
data, needed - sizeof(uint32_t), crc);
|
|
|
4e0e09 |
*(uint32_t *)ptr = crc;
|
|
|
4e0e09 |
|
|
|
4e0e09 |
@@ -611,7 +611,7 @@ overflow:
|
|
|
4e0e09 |
ptr += var->data_size;
|
|
|
4e0e09 |
|
|
|
4e0e09 |
crc = efi_crc32(data, needed - sizeof(uint32_t));
|
|
|
4e0e09 |
- debug("efi_crc32(%p, %lu) -> 0x%"PRIx32,
|
|
|
4e0e09 |
+ debug("efi_crc32(%p, %zu) -> 0x%"PRIx32,
|
|
|
4e0e09 |
data, needed - sizeof(uint32_t), crc);
|
|
|
4e0e09 |
*(uint32_t *)ptr = crc;
|
|
|
4e0e09 |
|
|
|
4e0e09 |
--
|
|
|
4e0e09 |
2.26.2
|
|
|
4e0e09 |
|