summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-12-13 00:13:41 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-12 23:38:56 -0800
commit11b1c0735d7709d37ef775ff036e473a1b60801d (patch)
treea663a5db7b2adfaa925a932babdd39332ed3fab3
parent9b87966e12fa53f59e383f701e9e391916a7860a (diff)
performance/io-threads: fix warnings due to format string mismatches during invocation of gf_log.
Signed-off-by: Raghavendra G <raghavendra@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 2211 ((re)introduce warnings for format string/parameter mismatch) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2211
-rw-r--r--xlators/performance/io-threads/src/io-threads.c10
1 files changed, 6 insertions, 4 deletions
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;
}