From 4638dfc1fee80f9338f2941f3cccb17bec63989a Mon Sep 17 00:00:00 2001 From: "Kaleb S. KEITHLEY" Date: Fri, 18 Nov 2016 10:05:12 -0500 Subject: events: use attribute(format(/printf)) to catch fmt string errors and statedump too. Also "const char *" (versus just "char *") for the fmt param. Change-Id: Ic63734a673208a2cd49aebccce7659816e6179e3 BUG: 1399196 Signed-off-by: Kaleb S. KEITHLEY Reviewed-on: https://review.gluster.org/15881 Smoke: Gluster Build System NetBSD-regression: NetBSD Build System CentOS-regression: Gluster Build System --- xlators/performance/write-behind/src/write-behind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xlators/performance/write-behind/src') diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index 738faea725e..d63c8b5c1d5 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -2784,7 +2784,7 @@ __wb_dump_requests (struct list_head *head, char *prefix) wb_request_t *req = NULL; list_for_each_entry (req, head, all) { - gf_proc_dump_build_key (key_prefix, key, + gf_proc_dump_build_key (key_prefix, key, "%s", (char *)gf_fop_list[req->fop]); gf_proc_dump_add_section(key_prefix); -- cgit