summaryrefslogtreecommitdiffstats
path: root/src/shared/efi-loader.c
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-08-29 13:08:31 +0200
committerJan Janssen <medhefgo@web.de>2022-08-30 12:03:33 +0200
commit9cf6c94ebab8d80083e1fcfd6514db0e8f64c970 (patch)
tree5e1585ca3ff1ed98d719e31a8c2e54f03df52c93 /src/shared/efi-loader.c
parenttree-wide: Use correct format specifiers (diff)
downloadsystemd-9cf6c94ebab8d80083e1fcfd6514db0e8f64c970.tar.xz
systemd-9cf6c94ebab8d80083e1fcfd6514db0e8f64c970.zip
efivars: Parse into unsigned
The format specifiers for UUID parsing use %x, which expects unsigned.
Diffstat (limited to '')
-rw-r--r--src/shared/efi-loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/efi-loader.c b/src/shared/efi-loader.c
index 3eed44a533..1340412cda 100644
--- a/src/shared/efi-loader.c
+++ b/src/shared/efi-loader.c
@@ -60,7 +60,8 @@ int efi_loader_get_boot_usec(usec_t *ret_firmware, usec_t *ret_loader) {
int efi_loader_get_device_part_uuid(sd_id128_t *ret) {
_cleanup_free_ char *p = NULL;
- int r, parsed[16];
+ int r;
+ unsigned parsed[16];
if (!is_efi_boot())
return -EOPNOTSUPP;