#include <errno.h>
#include <stdlib.h>
-#include <string.h>
#include "consoled.h"
#include "log.h"
#include "sd-daemon.h"
-#include "util.h"
int main(int argc, char *argv[]) {
_cleanup_(manager_freep) Manager *m = NULL;
r = manager_new(&m);
if (r < 0) {
- log_error("Could not create manager: %s", strerror(-r));
+ log_error_errno(r, "Could not create manager: %m");
goto out;
}
r = manager_run(m);
if (r < 0) {
- log_error("Cannot run manager: %s", strerror(-r));
+ log_error_errno(r, "Cannot run manager: %m");
goto out;
}