From c1480dae170e5b597b937dc3591974dc76728680 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 23 Sep 2010 17:44:33 +0200 Subject: [PATCH] readahead: normalize logging --- fixme | 2 ++ src/readahead-collect.c | 5 +---- src/readahead-replay.c | 4 +--- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/fixme b/fixme index 18b81e33..16aabdaa 100644 --- a/fixme +++ b/fixme @@ -94,6 +94,8 @@ * properly handle bind mounts in /etc/fstab +* readahead() vs. fadvise() vs. ioprio + External: * place /etc/inittab with explaining blurb. diff --git a/src/readahead-collect.c b/src/readahead-collect.c index 3699c3db..e93f4fe5 100644 --- a/src/readahead-collect.c +++ b/src/readahead-collect.c @@ -319,7 +319,6 @@ static int collect(const char *root) { m = FAN_EVENT_NEXT(m, n); } - } if (fanotify_fd >= 0) { @@ -438,12 +437,10 @@ finish: } int main(int argc, char *argv[]) { - /* log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); */ + log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_parse_environment(); log_open(); - log_set_max_level(LOG_DEBUG); - if (collect("/") < 0) return 1; diff --git a/src/readahead-replay.c b/src/readahead-replay.c index b886857f..5f7a4845 100644 --- a/src/readahead-replay.c +++ b/src/readahead-replay.c @@ -201,12 +201,10 @@ finish: } int main(int argc, char*argv[]) { - /* log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); */ + log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_parse_environment(); log_open(); - log_set_max_level(LOG_DEBUG); - if (replay("/") < 0) return 1; -- 2.39.5