From: Thomas Weißschuh Date: Wed, 22 Apr 2026 21:40:51 +0000 (+0200) Subject: ctrlaltdel: pass correct integer types to printf X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=36c14e043470f8a9dbb80de4e45be049f210e281;p=thirdparty%2Futil-linux.git ctrlaltdel: pass correct integer types to printf The printf format %ju expects an 'uintmax_t'. Cast the value to make sure the correct type is passed. Signed-off-by: Thomas Weißschuh --- diff --git a/sys-utils/ctrlaltdel.c b/sys-utils/ctrlaltdel.c index 1601154f8..54179c849 100644 --- a/sys-utils/ctrlaltdel.c +++ b/sys-utils/ctrlaltdel.c @@ -58,7 +58,7 @@ static int get_cad(void) break; default: printf("%s hard\n", _("implicit")); - warnx(_("unexpected value in %s: %ju"), _PATH_PROC_CTRL_ALT_DEL, val); + warnx(_("unexpected value in %s: %ju"), _PATH_PROC_CTRL_ALT_DEL, (uintmax_t)val); return EXIT_FAILURE; } return EXIT_SUCCESS;