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:
Karel Zak 2019-07-29 12:43:06 +02:00
parent 8ef57fdf13
commit a1cc831b59
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}