From: Ruediger Meier Date: Wed, 16 May 2018 10:37:17 +0000 (+0200) Subject: script: fix printf format specifiers X-Git-Tag: v2.33-rc1~257 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aafa27c1ff835165216cfaba18581b8cda0db7cd;p=thirdparty%2Futil-linux.git script: fix printf format specifiers Noticed on 32bit builds. Types changed in 0da73643. Signed-off-by: Ruediger Meier --- diff --git a/term-utils/script.c b/term-utils/script.c index bbf52efd54..6d5ddd84a2 100644 --- a/term-utils/script.c +++ b/term-utils/script.c @@ -454,8 +454,8 @@ static void handle_io(struct script_control *ctl, int fd, int *eof) /* check output limit */ if (ctl->maxsz != 0 && ctl->outsz >= ctl->maxsz) { if (!ctl->quiet) - printf(_("Script terminated, max output file size %zd exceeded.\n"), ctl->maxsz); - DBG(IO, ul_debug("output size %zd, exceeded limit %zd", ctl->outsz, ctl->maxsz)); + printf(_("Script terminated, max output file size %"PRIu64" exceeded.\n"), ctl->maxsz); + DBG(IO, ul_debug("output size %"PRIu64", exceeded limit %"PRIu64, ctl->outsz, ctl->maxsz)); done_log(ctl, _("max output size exceeded")); } }