summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Bostic <keith@wiredtiger.com>2012-09-14 15:30:35 +0000
committerKeith Bostic <keith@wiredtiger.com>2012-09-16 13:03:08 +0000
commit94d9b9837509c7b0dab7fed61c2cc03cd00d3b13 (patch)
tree7457e06622a7a117cf912b02385290ebbde2df3d
parentd79cf1369edf64f40bb9e2625f39fda67e13c424 (diff)
downloadmongo-94d9b9837509c7b0dab7fed61c2cc03cd00d3b13.tar.gz
Show the data source on the completion line.
-rw-r--r--test/format/t.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/format/t.c b/test/format/t.c
index 3a7f13930c2..e3d2e3bd0fa 100644
--- a/test/format/t.c
+++ b/test/format/t.c
@@ -17,6 +17,7 @@ int
main(int argc, char *argv[])
{
int ch, reps;
+ char *p;
if ((g.progname = strrchr(argv[0], '/')) == NULL)
g.progname = argv[0];
@@ -140,7 +141,11 @@ main(int argc, char *argv[])
wts_close(); /* Close */
- printf("%4d: %-40s\n", g.run_cnt, config_dtype());
+ /* Overwrite the progress line with a completion line. */
+ p = strchr(g.c_data_source, ':');
+ *p = '\0';
+ printf("%4d: %s %-40s\n",
+ g.run_cnt, config_dtype(), g.c_data_source);
}
/* Flush/close any logging information. */