From f5c96008b0c5ec41b6f136b0af41c56f6af2ccb8 Mon Sep 17 00:00:00 2001 From: Lars Kumbier Date: Tue, 10 Jul 2012 15:26:08 +0200 Subject: colorful ipv6 status message --- src/print_ipv6_addr.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/print_ipv6_addr.c b/src/print_ipv6_addr.c index b7f668a..abf4508 100644 --- a/src/print_ipv6_addr.c +++ b/src/print_ipv6_addr.c @@ -119,7 +119,9 @@ void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, con char *outwalk = buffer; if (addr_string == NULL) { + START_COLOR("color_bad"); OUTPUT_FULL_TEXT(format_down); + END_COLOR; return; } @@ -134,6 +136,7 @@ void print_ipv6_info(yajl_gen json_gen, char *buffer, const char *format_up, con walk += strlen("ip"); } } - + START_COLOR("color_good"); OUTPUT_FULL_TEXT(buffer); + END_COLOR; } -- cgit v1.2.3