summaryrefslogtreecommitdiff
path: root/src/readahead-replay.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-09-24 11:12:10 +0200
committerLennart Poettering <lennart@poettering.net>2010-09-24 11:12:10 +0200
commit4030d7a923427a50745fc5786f4905aa703f0bcb (patch)
tree5c4750b7874c75716fed02420d85c7f2957e8b3f /src/readahead-replay.c
parentc1480dae170e5b597b937dc3591974dc76728680 (diff)
readahead: take file system root on command line
Diffstat (limited to 'src/readahead-replay.c')
-rw-r--r--src/readahead-replay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/readahead-replay.c b/src/readahead-replay.c
index 5f7a484546..1f1ec523fa 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;