]> err.no Git - systemd/commitdiff
readahead: normalize logging
authorLennart Poettering <lennart@poettering.net>
Thu, 23 Sep 2010 15:44:33 +0000 (17:44 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Sep 2010 15:44:33 +0000 (17:44 +0200)
fixme
src/readahead-collect.c
src/readahead-replay.c

diff --git a/fixme b/fixme
index 18b81e33e7dc773c59d98d91035cf26e361d8661..16aabdaa1c590c1150134dd8e0c42869c916035b 100644 (file)
--- 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.
index 3699c3db8130345272216c0d29044a38af52e212..e93f4fe5270a3eb5e51506ae7d8d54204f24e9bd 100644 (file)
@@ -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;
 
index b886857ffba9475c7581325c61cfae593ae02db1..5f7a4845469de5020b0332c6dad37032cf27ed9e 100644 (file)
@@ -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;