projects
/
blktrace.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
801646d
)
eliminate check of empty -F format
author
Luis Useche
<luis@cis.fiu.edu>
Mon, 5 May 2008 18:53:07 +0000
(20:53 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 5 May 2008 18:53:07 +0000
(20:53 +0200)
This patch eliminates the checking of -F format when it is empty. I am
using this in order to blank out the events that I do not want for
certain act mask. Note that there is no real motivation to have this
checking.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
blkparse_fmt.c
patch
|
blob
|
blame
|
history
diff --git
a/blkparse_fmt.c
b/blkparse_fmt.c
index 0ca5c60912c164432a6b8d375765ca30c8ee1217..2f21f6b57f37b17fb50c88970aa62be30047c9a7 100644
(file)
--- a/
blkparse_fmt.c
+++ b/
blkparse_fmt.c
@@
-44,10
+44,6
@@
int add_format_spec(char *option)
return 1;
}
option += 2;
- if (*option == '\0') {
- fprintf(stderr,"Bad format specifier - need fmt %s\n", option);
- return 1;
- }
override_format[spec] = strdup(option);