From 9b87966e12fa53f59e383f701e9e391916a7860a Mon Sep 17 00:00:00 2001 From: Raghavendra G Date: Mon, 13 Dec 2010 00:13:28 +0000 Subject: performance/write-behind: 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 --- .../performance/write-behind/src/write-behind.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'xlators/performance/write-behind/src/write-behind.c') diff --git a/xlators/performance/write-behind/src/write-behind.c b/xlators/performance/write-behind/src/write-behind.c index d693b596b50..43956a920a5 100644 --- a/xlators/performance/write-behind/src/write-behind.c +++ b/xlators/performance/write-behind/src/write-behind.c @@ -2808,35 +2808,35 @@ reconfigure (xlator_t *this, dict_t *options) ret = gf_string2bytesize (str, &window_size); if (ret != 0) { gf_log(this->name, GF_LOG_ERROR, "Reconfiguration" - "'option cache-size %s failed , Invalid" - " number format, Defaulting to old value (%d)" - , str, conf->window_size); + "'option cache-size %s failed , Invalid" + " number format, Defaulting to old value " + "(%"PRIu64")", str, conf->window_size); ret = -1; goto out; } if (window_size < (512 * GF_UNIT_KB)) { gf_log(this->name, GF_LOG_ERROR, "Reconfiguration" - "'option cache-size %s' failed , Max value" - "can be 512KiB, Defaulting to old value (%d)" - , str, conf->window_size); + "'option cache-size %s' failed , Max value" + "can be 512KiB, Defaulting to old value " + "(%"PRIu64")", str, conf->window_size); ret = -1; goto out; } if (window_size > (2 * GF_UNIT_GB)) { gf_log(this->name, GF_LOG_ERROR, "Reconfiguration" - "'option cache-size %s' failed , Max value" - "can be 1 GiB, Defaulting to old value (%d)" - , str, conf->window_size); + "'option cache-size %s' failed , Max value" + "can be 1 GiB, Defaulting to old value " + "(%"PRIu64")", str, conf->window_size); ret = -1; goto out; } conf->window_size = window_size; gf_log(this->name, GF_LOG_DEBUG, "Reconfiguring " - "'option cache-size %s ' to %d" - , str, conf->window_size); + "'option cache-size %s ' to %"PRIu64, str, + conf->window_size); } else conf->window_size = WB_WINDOW_SIZE; -- cgit