sscanf fixup
I noticed that a job of:
[sequential write at 1k block size.]
Gets reported as "sequentia".
I think we need to use %255[^\n] in sscanf instead.
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
diff --git a/init.c b/init.c
index aa31138..398dc20 100644
--- a/init.c
+++ b/init.c
@@ -191,7 +191,7 @@
{
if (td == &def_thread)
return;
-
+
profile_td_exit(td);
if (td->error)
@@ -835,7 +835,7 @@
if (is_empty_or_comment(p))
continue;
- if (sscanf(p, "[%255s]", name) != 1) {
+ if (sscanf(p, "[%255[^\n]]", name) != 1) {
if (inside_skip)
continue;
log_err("fio: option <%s> outside of [] job section\n",