From: James Simmons Date: Mon, 11 Jan 2016 14:38:27 +0000 (-0500) Subject: LU-5030 utils: fix lnet/utils/debug.c compile issue X-Git-Tag: 2.7.66~40 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F00%2F17900%2F3;p=fs%2Flustre-release.git 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 --- 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;