From 4822e547b6fbadf11cc079fa3dc21172295cca53 Mon Sep 17 00:00:00 2001 From: kanoi Date: Mon, 25 Aug 2014 10:41:49 +1000 Subject: [PATCH] ckdb - reorder options and name the missing data --- src/ckdb.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/ckdb.c b/src/ckdb.c index d088e445..f51031f6 100644 --- a/src/ckdb.c +++ b/src/ckdb.c @@ -9207,9 +9207,9 @@ static void compare_summaries(K_TREE *leftsum, char *leftname, } LOGERR("RESULT: %s->%s Total %"PRIu64" workinfoid %"PRId64"-%"PRId64 - " missing: %"PRIu64" different: %"PRIu64, + " %s missing: %"PRIu64" different: %"PRIu64, leftname, rightname, total, first_used, last_used, - missing, diff); + rightname, missing, diff); if (miss_first) { tv_to_buf(&miss_first_cd, cd_buf1, sizeof(cd_buf1)); tv_to_buf(&miss_last_cd, cd_buf2, sizeof(cd_buf2)); @@ -9693,9 +9693,6 @@ int main(int argc, char **argv) case 'k': ckp.killold = true; break; - case 'n': - ckp.name = strdup(optarg); - break; case 'l': ckp.loglevel = atoi(optarg); if (ckp.loglevel < LOG_EMERG || ckp.loglevel > LOG_DEBUG) { @@ -9703,6 +9700,17 @@ int main(int argc, char **argv) LOG_EMERG, LOG_DEBUG, ckp.loglevel); } break; + case 'n': + ckp.name = strdup(optarg); + break; + case 'p': + db_pass = strdup(optarg); + kill = optarg; + if (*kill) + *(kill++) = ' '; + while (*kill) + *(kill++) = '\0'; + break; case 'r': restorefrom = strdup(optarg); break; @@ -9717,14 +9725,6 @@ int main(int argc, char **argv) break; case 'v': exit(0); - case 'p': - db_pass = strdup(optarg); - kill = optarg; - if (*kill) - *(kill++) = ' '; - while (*kill) - *(kill++) = '\0'; - break; case 'y': confirm_sharesummary = true; break;