From 6b06230e87aa939b33e70001e216028680c992a4 Mon Sep 17 00:00:00 2001 From: James Simmons Date: Mon, 11 Jan 2016 09:38:27 -0500 Subject: [PATCH] LU-5030 utils: fix lnet/utils/debug.c compile issue The source file debug.c will fail to compile if gcc uses the flag -Werror=format-security. The solution is to add "%s" to cfs_get_param_path(). Change-Id: If0fb438010f692e11432aa1539218d16c9e4548e Signed-off-by: James Simmons Reviewed-on: http://review.whamcloud.com/17900 Tested-by: Jenkins Reviewed-by: Ryan Haasken Reviewed-by: Frank Zago Reviewed-by: John L. Hammond Tested-by: Maloo Reviewed-by: Oleg Drokin --- lnet/utils/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lnet/utils/debug.c b/lnet/utils/debug.c index babadc7..6491541 100644 --- a/lnet/utils/debug.c +++ b/lnet/utils/debug.c @@ -92,7 +92,7 @@ dbg_open_ctlhandle(const char *str) glob_t path; int fd, rc; - rc = cfs_get_param_paths(&path, str); + rc = cfs_get_param_paths(&path, "%s", str); if (rc != 0) { fprintf(stderr, "invalid parameter '%s'\n", str); return -1; -- 1.8.3.1