From: Karel Zak Date: Mon, 29 Jul 2019 10:43:06 +0000 (+0200) Subject: cript: always use decimal point numbers in logs X-Git-Tag: v2.35-rc1~139 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a1cc831b594b16800468aaf9eac7262bbfcc27ec;p=thirdparty%2Futil-linux.git 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 --- 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; }