aboutsummaryrefslogtreecommitdiffstats
path: root/src/mds-colour.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2015-08-22 00:38:50 +0200
committerMattias Andrée <maandree@operamail.com>2015-08-22 00:38:50 +0200
commited937dd3058b10e0ec5fdcffd93dc2c2a7f2c2da (patch)
tree31155457a0f27e05acdf70682caeeb86cc5769c2 /src/mds-colour.c
parentadd and use xclose and xfclose, we do not want close or fclose to be ignored because a singal interrupts it. (diff)
downloadmds-ed937dd3058b10e0ec5fdcffd93dc2c2a7f2c2da.tar.gz
mds-ed937dd3058b10e0ec5fdcffd93dc2c2a7f2c2da.tar.bz2
mds-ed937dd3058b10e0ec5fdcffd93dc2c2a7f2c2da.tar.xz
typo + mds-colour: print colour list on SIGINFO
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/mds-colour.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mds-colour.c b/src/mds-colour.c
index 2bee831..c5151dc 100644
--- a/src/mds-colour.c
+++ b/src/mds-colour.c
@@ -477,10 +477,18 @@ int handle_set_colour(const char* recv_name, const char* recv_remove, const char
*/
void received_info(int signo)
{
+ size_t i;
+ colour_list_entry_t* entry;
(void) signo;
iprintf("next message ID: %" PRIu32, message_id);
iprintf("connected: %s", connected ? "yes" : "no");
iprintf("send buffer size: %zu bytes", send_buffer_size);
+ iprint("DEFINED COLOURS (bytes red green blue name-hash name)");
+ foreach_hash_list_entry (colours, i, entry)
+ iprintf("%i %"PRIu64" %"PRIu64" %"PRIu64" %zu %s",
+ entry->value.bytes, entry->value.red, entry->value.green,
+ entry->value.blue, entry->key_hash, entry->key);
+ iprint("END DEFINED COLOURS");
}