From: Sami Kerola Date: Tue, 25 Feb 2020 21:30:19 +0000 (+0000) Subject: ctrlaltdel: display error message indicated by errno X-Git-Tag: v2.36-rc1~160^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dcb87944c28105fcd718625d9477c3518d26875b;p=thirdparty%2Futil-linux.git ctrlaltdel: display error message indicated by errno Signed-off-by: Sami Kerola --- diff --git a/sys-utils/ctrlaltdel.c b/sys-utils/ctrlaltdel.c index 9ead946213..303d2dc95c 100644 --- a/sys-utils/ctrlaltdel.c +++ b/sys-utils/ctrlaltdel.c @@ -75,7 +75,7 @@ static int set_cad(const char *arg) return EXIT_FAILURE; } if (reboot(cmd) < 0) { - warnx("reboot"); + warn("reboot"); return EXIT_FAILURE; } return EXIT_SUCCESS;