summaryrefslogtreecommitdiffstats
path: root/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch')
-rw-r--r--meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch40
1 files changed, 0 insertions, 40 deletions
diff --git a/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch b/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch
deleted file mode 100644
index a99ba284e0..0000000000
--- a/meta/recipes-connectivity/nfs-utils/nfs-utils/0003-support-nfs-xcommon.c-fix-a-formatting-error-with-cl.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From cc59a7fe15b6ca2ee43cba0dc1d699323b36ffcc Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Fri, 21 Mar 2025 10:42:56 +0100
4Subject: [PATCH] support/nfs/xcommon.c: fix a formatting error with clang
5
6Specifically, this happens:
7
8| xcommon.c:101:24: error: format string is not a string literal [-Werror,-Wformat-nonliteral]
9| 101 | vfprintf (stderr, fmt2, args);
10| | ^~~~
11
12A similar approach (print \n seprately) is already used elsewhere in
13the same file.
14
15Upstream-Status: Submitted [via email to steved@redhat.com,linux-nfs@vger.kernel.org]
16Signed-off-by: Alexander Kanavin <alex@linutronix.de>
17---
18 support/nfs/xcommon.c | 6 ++----
19 1 file changed, 2 insertions(+), 4 deletions(-)
20
21diff --git a/support/nfs/xcommon.c b/support/nfs/xcommon.c
22index 3989f0b..1d04dd1 100644
23--- a/support/nfs/xcommon.c
24+++ b/support/nfs/xcommon.c
25@@ -94,13 +94,11 @@ xstrconcat4 (const char *s, const char *t, const char *u, const char *v) {
26 void
27 nfs_error (const char *fmt, ...) {
28 va_list args;
29- char *fmt2;
30
31- fmt2 = xstrconcat2 (fmt, "\n");
32 va_start (args, fmt);
33- vfprintf (stderr, fmt2, args);
34+ vfprintf (stderr, fmt, args);
35+ fprintf (stderr, "\n");
36 va_end (args);
37- free (fmt2);
38 }
39
40 /* Make a canonical pathname from PATH. Returns a freshly malloced string.