projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6cefbe3
)
Fix --showcmd bug
author
Jens Axboe
<jens.axboe@oracle.com>
Thu, 19 Apr 2007 07:41:45 +0000
(09:41 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Thu, 19 Apr 2007 07:41:45 +0000
(09:41 +0200)
Only append 'fio' if this is the first time we see a [] section.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index b5f9abcef122f618f546540380f546d1f21db6af..da2595c7aa29f905b89b41a34a52b8ce0918cd0c 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-555,6
+555,7
@@
static int parse_jobs_ini(char *file, int stonewall_flag)
FILE *f;
char *p;
int ret = 0, stonewall;
+ int first_sect = 1;
f = fopen(file, "r");
if (!f) {
@@
-587,9
+588,11
@@
static int parse_jobs_ini(char *file, int stonewall_flag)
name[strlen(name) - 1] = '\0';
if (dump_cmdline) {
- log_info("fio ");
+ if (first_sect)
+ log_info("fio ");
if (!global)
log_info("--name=%s ", name);
+ first_sect = 0;
}
td = get_new_job(global, &def_thread);