summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2016-01-12 19:45:01 +0100
committerLennart Poettering <lennart@poettering.net>2016-01-12 19:45:01 +0100
commit0c50384b30c51133a824bfdb8028578b7537068b (patch)
tree68b8962a85a54af315933d77cd78465e3c11f5ad
parent593a2c77cb88255dafa62fbd7e3068095526a010 (diff)
parent34a6843d622e71d197dedee8de24a59eaddb86ea (diff)
Merge pull request #2310 from vcaputo/sd-event-profiling-fixups
sd-event: minor fixups to delays profiling changes
-rw-r--r--src/libsystemd/sd-event/sd-event.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/libsystemd/sd-event/sd-event.c b/src/libsystemd/sd-event/sd-event.c
index 03ceac3676..aeb06ad9a8 100644
--- a/src/libsystemd/sd-event/sd-event.c
+++ b/src/libsystemd/sd-event/sd-event.c
@@ -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;
}
@@ -2633,13 +2633,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) {