From: Steven Barth Date: Wed, 28 Nov 2012 11:05:10 +0000 (+0100) Subject: Improve syslog-messages X-Git-Tag: debian/1.1+git20160131-1~216 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4be3f666fde73be0d7046fac1ab8075aa5b1e8db;p=odhcp6c.git Improve syslog-messages --- 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);