diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/print_ipv6_addr.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; } |