summaryrefslogtreecommitdiff
path: root/src/scratchtool.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-10-21 16:35:36 -0700
committerSage Weil <sage@newdream.net>2011-10-21 16:35:36 -0700
commit1f7cb7570a1ababe5a32bda3f5c1c120e1333648 (patch)
treeaff69cea2dbcf833513fe77cfe209b45c4b459e1 /src/scratchtool.c
parent30c34ab8f5241d9a6884a75a9986db1f119d1985 (diff)
downloadceph-1f7cb7570a1ababe5a32bda3f5c1c120e1333648.tar.gz
config: separate --log-to-stderr and --err-to-stderr
Instead of having magic values (1 == errors only to stderr, 2 = everything), have two booleans. Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'src/scratchtool.c')
-rw-r--r--src/scratchtool.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/scratchtool.c b/src/scratchtool.c
index acaa9a75a4f..6022d1e1b01 100644
--- a/src/scratchtool.c
+++ b/src/scratchtool.c
@@ -131,7 +131,7 @@ static int testrados(void)
}
// Can we change it?
- if (rados_conf_set(cl, "log to stderr", "2")) {
+ if (rados_conf_set(cl, "log to stderr", "true")) {
printf("error: error setting log_to_stderr\n");
return 1;
}
@@ -139,7 +139,7 @@ static int testrados(void)
printf("error: failed to read log_to_stderr from config\n");
return 1;
}
- if (tmp[0] != '2') {
+ if (tmp == "true") {
printf("error: new setting for log_to_stderr failed to take effect.\n");
return 1;
}