From 4be3f666fde73be0d7046fac1ab8075aa5b1e8db Mon Sep 17 00:00:00 2001 From: Steven Barth Date: Wed, 28 Nov 2012 12:05:10 +0100 Subject: [PATCH] Improve syslog-messages --- src/odhcp6c.c | 1 - src/script.c | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/odhcp6c.c b/src/odhcp6c.c index 9126986..7c49040 100644 --- a/src/odhcp6c.c +++ b/src/odhcp6c.c @@ -328,7 +328,6 @@ static uint8_t* odhcp6c_resize_state(enum odhcp6c_state state, ssize_t len) if (len == 0) return state_data[state] + state_len[state]; - syslog(LOG_WARNING, "state_reisze: %i %i %i", (int)state, (int)state_len[state], (int)len); uint8_t *n = realloc(state_data[state], state_len[state] + len); if (n || state_len[state] + len == 0) { state_data[state] = n; diff --git a/src/script.c b/src/script.c index 2a34ea0..ff81278 100644 --- a/src/script.c +++ b/src/script.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include #include @@ -156,6 +157,7 @@ static void prefix_to_env(const char *name, const uint8_t *fqdn, size_t len) void script_call(const char *status) { + syslog(LOG_WARNING, "State for %s changed to %s", argv[1], status); size_t dns_len, search_len, custom_len; struct in6_addr *dns = odhcp6c_get_state(STATE_DNS, &dns_len); uint8_t *search = odhcp6c_get_state(STATE_SEARCH, &search_len); -- 2.30.2