From a1cc831b594b16800468aaf9eac7262bbfcc27ec Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 29 Jul 2019 12:43:06 +0200 Subject: [PATCH] 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 --- term-utils/script.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/term-utils/script.c b/term-utils/script.c index 493e79c0fd..17a747394d 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -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; } -- 2.47.3