From 6afd317c70e56e105e8221ca14b433d2e055cf1f Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Fri, 13 Jan 2006 14:55:18 +0000 Subject: Relevant BUGIDs: none Purpose of commit: cleanup Commit summary: --------------- 2006-01-13 Dmitry V. Levin * libpam/pam_audit.c (_pam_auditlog): Replace strerror(errno) call with %m specifier. --- libpam/pam_audit.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libpam') diff --git a/libpam/pam_audit.c b/libpam/pam_audit.c index 7c067d9b..acf7da8b 100644 --- a/libpam/pam_audit.c +++ b/libpam/pam_audit.c @@ -56,8 +56,7 @@ _pam_auditlog(pam_handle_t *pamh, int action, int retval, int flags) /* this should only fail in case of extreme resource shortage, * need to prevent login in that case for CAPP compliance. */ - pam_syslog(pamh, LOG_CRIT, "audit_open() failed: %s", - strerror(errno)); + pam_syslog(pamh, LOG_CRIT, "audit_open() failed: %m"); return PAM_SYSTEM_ERR; } -- cgit v1.2.3