Mercurial > geeqie
diff src/remote.c @ 506:fc9c8a3e1a8b
Handle the newline in DEBUG_N() macro instead of adding one
in each debug message string.
author | zas_ |
---|---|
date | Thu, 24 Apr 2008 00:15:03 +0000 |
parents | c7a2471e5c4e |
children | 135570a8bd96 |
line wrap: on
line diff
--- a/src/remote.c Wed Apr 23 23:52:20 2008 +0000 +++ b/src/remote.c Thu Apr 24 00:15:03 2008 +0000 @@ -97,7 +97,8 @@ { rc->clients = g_list_remove(rc->clients, client); - DEBUG_1("HUP detected, closing client.\nclient count %d\n", g_list_length(rc->clients)); + DEBUG_1("HUP detected, closing client."); + DEBUG_1("client count %d", g_list_length(rc->clients)); g_source_remove(client->channel_id); close(client->fd); @@ -129,7 +130,7 @@ g_io_channel_unref(channel); rc->clients = g_list_append(rc->clients, client); - DEBUG_1("client count %d\n", g_list_length(rc->clients)); + DEBUG_1("client count %d", g_list_length(rc->clients)); } static void remote_server_clients_close(RemoteConnection *rc) @@ -252,7 +253,7 @@ strncpy(addr.sun_path, path, sun_path_len); if (connect(fd, &addr, sizeof(addr)) == -1) { - DEBUG_1("error connecting to socket: %s\n", strerror(errno)); + DEBUG_1("error connecting to socket: %s", strerror(errno)); close(fd); return NULL; }