cript: always use decimal point numbers in logs
The new header/info lines in log uses 0, but it's unexpected by scriptreplay as there was always number formatted by %f. Signed-off-by: Karel Zak <kzak@redhat.com>
This commit is contained in:
parent
8ef57fdf13
commit
a1cc831b59
|
@ -555,9 +555,9 @@ static uint64_t log_info(struct script_control *ctl, const char *name, const cha
|
|||
}
|
||||
|
||||
if (*msg)
|
||||
sz = fprintf(log->fp, "H 0 %s %s\n", name, msg);
|
||||
sz = fprintf(log->fp, "H %f %s %s\n", 0.0, name, msg);
|
||||
else
|
||||
sz = fprintf(log->fp, "H 0 %s\n", name);
|
||||
sz = fprintf(log->fp, "H %f %s\n", 0.0, name);
|
||||
|
||||
return sz > 0 ? sz : 0;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue