diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-20 11:18:22 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-20 11:18:22 +0100 |
commit | 6bf3c61c57f1ba439b2124fb89229395a77f8f46 (patch) | |
tree | 528b456d3f556a36c26d2808b73e216f6a72d9fc /src/fsck | |
parent | afe44c8ffd389b6296713acc8d56c68d2e44994b (diff) | |
download | systemd-6bf3c61c57f1ba439b2124fb89229395a77f8f46.tar.gz |
log: introduce new helper call log_setup_service()
Let's reduce the common boilerplate and have a single setup function
used by all service code to setup logging.
Diffstat (limited to 'src/fsck')
-rw-r--r-- | src/fsck/fsck.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/fsck/fsck.c b/src/fsck/fsck.c index 821ad15c5f..b1ce210fcc 100644 --- a/src/fsck/fsck.c +++ b/src/fsck/fsck.c @@ -270,9 +270,7 @@ static int run(int argc, char *argv[]) { int r, exit_status; pid_t pid; - log_set_target(LOG_TARGET_AUTO); - log_parse_environment(); - log_open(); + log_setup_service(); if (argc > 2) { log_error("This program expects one or no arguments."); |