From 11b1c0735d7709d37ef775ff036e473a1b60801d Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 13 Dec 2010 00:13:41 +0000 Subject: performance/io-threads: fix warnings due to format string mismatches during invocation of gf_log. Signed-off-by: Raghavendra G Signed-off-by: Anand V. Avati BUG: 2211 ((re)introduce warnings for format string/parameter mismatch) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2211 --- xlators/performance/io-threads/src/io-threads.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'xlators/performance/io-threads/src/io-threads.c') diff --git a/xlators/performance/io-threads/src/io-threads.c b/xlators/performance/io-threads/src/io-threads.c index 984434d4d51..2a6fc57de14 100644 --- a/xlators/performance/io-threads/src/io-threads.c +++ b/xlators/performance/io-threads/src/io-threads.c @@ -2142,15 +2142,17 @@ reconfigure ( xlator_t *this, dict_t *options) if (thread_count < IOT_MIN_THREADS) { gf_log ("io-threads", GF_LOG_WARNING, - "Number of threads opted is less then min rest" - "oring it to previous value",conf->max_count); + "Number of threads opted (%d) is less then " + "min (%d). Restoring it to previous value (%d)", + thread_count, IOT_MIN_THREADS, conf->max_count); goto out; } if (thread_count > IOT_MAX_THREADS) { gf_log ("io-threads", GF_LOG_WARNING, - "Number of threads opted is greater than max " - "restoring it to previous value",conf->max_count); + "Number of threads opted (%d) is greater than " + "max (%d). Restoring it to previous value (%d)", + thread_count, IOT_MAX_THREADS, conf->max_count); goto out; } -- cgit