chiark / gitweb /
treewide: use log_*_errno whenever %m is in the format string
[elogind.git] / src / core / selinux-access.c
index b3835d59a5b027834ef396d581b9cfba4e41bb0b..0ec80a1b33f6ce3c6d91572e322699fa07d183ce 100644 (file)
@@ -112,7 +112,7 @@ _printf_(2, 3) static int log_callback(int type, const char *fmt, ...) {
 #endif
 
         va_start(ap, fmt);
-        log_metav(LOG_USER | LOG_INFO, 0, __FILE__, __LINE__, __FUNCTION__, fmt, ap);
+        log_internalv(LOG_AUTH | LOG_INFO, 0, __FILE__, __LINE__, __FUNCTION__, fmt, ap);
         va_end(ap);
 
         return 0;
@@ -127,7 +127,7 @@ static int access_init(void) {
         int r = 0;
 
         if (avc_open(NULL, 0)) {
-                log_error("avc_open() failed: %m");
+                log_error_errno(errno, "avc_open() failed: %m");
                 return -errno;
         }