Blame SOURCES/autofs-5.1.7-fix-arg-not-used-in-print.patch

29d2b9
autofs-5.1.7 - fix arg not used in error print
29d2b9
29d2b9
From: Ian Kent <raven@themaw.net>
29d2b9
29d2b9
Coverity: extra_argument: This argument was not used by the format
29d2b9
	  string: "key".
29d2b9
29d2b9
Signed-off-by: Ian Kent <raven@themaw.net>
29d2b9
---
29d2b9
 CHANGELOG    |    1 +
29d2b9
 lib/mounts.c |    4 +---
29d2b9
 2 files changed, 2 insertions(+), 3 deletions(-)
29d2b9
29d2b9
diff --git a/CHANGELOG b/CHANGELOG
29d2b9
index f11aa1c7..1d56c96f 100644
29d2b9
--- a/CHANGELOG
29d2b9
+++ b/CHANGELOG
29d2b9
@@ -60,6 +60,7 @@
29d2b9
 - dont try umount after stat() ENOENT fail.
29d2b9
 - remove redundant assignment in master_add_amd_mount_section_mounts().
29d2b9
 - fix dead code in mnts_add_mount().
29d2b9
+- fix arg not used in error print.
29d2b9
 
29d2b9
 25/01/2021 autofs-5.1.7
29d2b9
 - make bind mounts propagation slave by default.
29d2b9
diff --git a/lib/mounts.c b/lib/mounts.c
29d2b9
index 018b9c80..883e3743 100644
29d2b9
--- a/lib/mounts.c
29d2b9
+++ b/lib/mounts.c
29d2b9
@@ -1519,9 +1519,7 @@ int tree_mapent_add_node(struct mapent_cache *mc,
29d2b9
 	}
29d2b9
 
29d2b9
 	if (MAPENT_ROOT(base) != MAPENT_NODE(base)) {
29d2b9
-		error(logopt,
29d2b9
-		     "failed to find multi-mount root of offset tree",
29d2b9
-		     key);
29d2b9
+		error(logopt, "key %s is not multi-mount root", root);
29d2b9
 		return 0;
29d2b9
 	}
29d2b9
 	tree = MAPENT_ROOT(base);