summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorRaghavendra G <raghavendra@gluster.com>2010-12-13 00:13:28 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-12-12 23:38:52 -0800
commit9b87966e12fa53f59e383f701e9e391916a7860a (patch)
tree580bae4aa10a5df0362ab8ec01d34c60875d95e5 /xlators
parent26caaeae10414f9888a438ad8559692a7f74f918 (diff)
performance/write-behind: 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
Diffstat (limited to 'xlators')
-rw-r--r--xlators/performance/write-behind/src/write-behind.c22
1 files changed, 11 insertions, 11 deletions
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;