From 960cf5737e58c03b0d29797c0d4bd3461f1fdeff Mon Sep 17 00:00:00 2001 From: Petr Uzel Date: Thu, 22 Sep 2011 12:12:37 +0200 Subject: misc: use %m in format string instead of %s and strerror(errno) Signed-off-by: Petr Uzel --- login-utils/login.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'login-utils/login.c') diff --git a/login-utils/login.c b/login-utils/login.c index de56f2dcd..966233669 100644 --- a/login-utils/login.c +++ b/login-utils/login.c @@ -198,8 +198,7 @@ opentty(const char * tty) { fd = open(tty, O_RDWR | O_NONBLOCK); if (fd == -1) { - syslog(LOG_ERR, _("FATAL: can't reopen tty: %s"), - strerror(errno)); + syslog(LOG_ERR, _("FATAL: can't reopen tty: %m")); sleepexit(EXIT_FAILURE); } -- cgit v1.2.3-55-g7522