From: Lennart Poettering Date: Fri, 24 Sep 2010 09:12:10 +0000 (+0200) Subject: readahead: take file system root on command line X-Git-Tag: v11~89 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4030d7a923427a50745fc5786f4905aa703f0bcb;p=systemd readahead: take file system root on command line --- diff --git a/src/readahead-collect.c b/src/readahead-collect.c index e93f4fe5..937231ca 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -437,11 +437,12 @@ finish: } int main(int argc, char *argv[]) { + log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_parse_environment(); log_open(); - if (collect("/") < 0) + if (collect(argc >= 2 ? argv[1] : "/") < 0) return 1; return 0; diff --git a/src/readahead-replay.c b/src/readahead-replay.c index 5f7a4845..1f1ec523 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -201,11 +201,12 @@ finish: } int main(int argc, char*argv[]) { + log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_parse_environment(); log_open(); - if (replay("/") < 0) + if (replay(argc >= 2 ? argv[1] : "/") < 0) return 1; return 0;