diff options
author | yaworsky <yaworsky> | 2005-11-29 10:24:38 +0000 |
---|---|---|
committer | yaworsky <yaworsky> | 2005-11-29 10:24:38 +0000 |
commit | f00b09866bbe1b8c47a45279d96fc1c8f7f92948 (patch) | |
tree | d774d3c047fe5fa7e9b7dddc4a21733b9c34df3e | |
parent | 20da2ab20c24a5e13b18238a1be3af7d862c2e1f (diff) | |
download | syslog-win32-f00b09866bbe1b8c47a45279d96fc1c8f7f92948.tar.gz syslog-win32-f00b09866bbe1b8c47a45279d96fc1c8f7f92948.tar.xz syslog-win32-f00b09866bbe1b8c47a45279d96fc1c8f7f92948.zip |
Fixed use of strings in trace messages.
-rw-r--r-- | daemon/syslogd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/daemon/syslogd.c b/daemon/syslogd.c index 0a3b2b6..165896a 100644 --- a/daemon/syslogd.c +++ b/daemon/syslogd.c @@ -291,7 +291,7 @@ static struct string* get_hostname( struct sockaddr_in* addr ) { GList *next_item = item->next; - TRACE_2( "delete old entry %s\n", h->host ); + TRACE_2( "delete old entry %s\n", h->host->gstr->str ); string_release( h->host ); g_free( h ); hostnames = g_list_delete_link( hostnames, item ); @@ -305,7 +305,7 @@ static struct string* get_hostname( struct sockaddr_in* addr ) /* move entry to the beginning of the list */ item->data = hostnames->data; hostnames->data = h; - TRACE_LEAVE( "done; found cached entry: %s\n", ret ); + TRACE_LEAVE( "done; found cached entry: %s\n", ret->gstr->str ); return ret; } item = item->next; @@ -333,7 +333,7 @@ use_addr: } hostnames = g_list_prepend( hostnames, new_hostname ); ret = string_addref( new_hostname->host ); - TRACE_LEAVE( "done; ret=%s\n", ret ); + TRACE_LEAVE( "done; ret=%s\n", ret->gstr->str ); return ret; } |