chiark / gitweb /
sd-event: minor fixups to delays profiling changes
authorVito Caputo <vito.caputo@coreos.com>
Tue, 12 Jan 2016 18:14:33 +0000 (10:14 -0800)
committerSven Eden <yamakuzure@gmx.net>
Wed, 17 May 2017 13:22:15 +0000 (15:22 +0200)
src/libelogind/sd-event/sd-event.c

index 4d7f4620684f941df8b5867284e55f8c19240690..5ca8c48c82db8d4b15c7617426cb57e140daa624 100644 (file)
@@ -449,7 +449,7 @@ _public_ int sd_event_new(sd_event** ret) {
         }
 
         if (secure_getenv("SD_EVENT_PROFILE_DELAYS")) {
-                log_info("Event loop profiling enabled. Logarithmic histogram of event loop iterations in the range 2^0 ... 2^63 us will be logged every 5s.");
+                log_debug("Event loop profiling enabled. Logarithmic histogram of event loop iterations in the range 2^0 ... 2^63 us will be logged every 5s.");
                 e->profile_delays = true;
         }
 
@@ -2649,13 +2649,14 @@ _public_ int sd_event_dispatch(sd_event *e) {
 
 static void event_log_delays(sd_event *e) {
         char b[ELEMENTSOF(e->delays) * DECIMAL_STR_MAX(unsigned) + 1];
-        int i, o;
+        unsigned i;
+        int o;
 
         for (i = o = 0; i < ELEMENTSOF(e->delays); i++) {
                 o += snprintf(&b[o], sizeof(b) - o, "%u ", e->delays[i]);
                 e->delays[i] = 0;
         }
-        log_info("Event loop iterations: %.*s", o, b);
+        log_debug("Event loop iterations: %.*s", o, b);
 }
 
 _public_ int sd_event_run(sd_event *e, uint64_t timeout) {