#include <stdlib.h>
#include <unistd.h>
+#include "sd-messages.h"
+
#include "alloc-util.h"
#include "dirent-util.h"
#include "fd-util.h"
log_info("Successfully wrote Smack onlycap list.");
break;
default:
- return log_emergency_errno(r, "Failed to write Smack onlycap list: %m");
+ return log_struct_errno(LOG_EMERG, r,
+ LOG_MESSAGE("Failed to write Smack onlycap list: %m"),
+ "MESSAGE_ID=" SD_MESSAGE_SMACK_FAILED_WRITE_STR);
}
*loaded_policy = true;