diff options
author | Sage Weil <sage@newdream.net> | 2011-10-21 16:35:36 -0700 |
---|---|---|
committer | Sage Weil <sage@newdream.net> | 2011-10-21 16:35:36 -0700 |
commit | 1f7cb7570a1ababe5a32bda3f5c1c120e1333648 (patch) | |
tree | aff69cea2dbcf833513fe77cfe209b45c4b459e1 /src/scratchtool.c | |
parent | 30c34ab8f5241d9a6884a75a9986db1f119d1985 (diff) | |
download | ceph-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.c | 4 |
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; } |