systemd/0004-Revert-rfkill-fix-the-format-string-to-prevent-compi.patch
Lukas Nykryn 1cc7dd62a1 systemd-248-5
Resolves: #1931710
2021-05-17 07:59:40 +02:00

27 lines
1.1 KiB
Diff

From 1a19da5c83ee7775a98324aeff69b06b811e6784 Mon Sep 17 00:00:00 2001
From: Frantisek Sumsal <fsumsal@redhat.com>
Date: Fri, 14 May 2021 16:25:51 +0200
Subject: [PATCH] Revert "rfkill: fix the format string to prevent compilation
error"
This reverts commit 54f0c86b083a4782e37754d3bbe27d4d81c53d23.
Resolves: #1931710
---
src/rfkill/rfkill.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/rfkill/rfkill.c b/src/rfkill/rfkill.c
index 0b6ba65c3a..6126e9b0c4 100644
--- a/src/rfkill/rfkill.c
+++ b/src/rfkill/rfkill.c
@@ -336,7 +336,7 @@ static int run(int argc, char *argv[]) {
}
if ((size_t) l < RFKILL_EVENT_SIZE_V1)
- return log_error_errno(SYNTHETIC_ERRNO(EIO), "Short read of struct rfkill_event: (%zd < %lu)",
+ return log_error_errno(SYNTHETIC_ERRNO(EIO), "Short read of struct rfkill_event: (%zd < %d)",
l, RFKILL_EVENT_SIZE_V1);
log_debug("Reading struct rfkill_event: got %zd bytes.", l);