From bf5cd081a504b530b3fe4d9e0dad7a819335199e Mon Sep 17 00:00:00 2001 From: Andreas Ericsson Date: Tue, 23 Mar 2010 11:10:54 +0100 Subject: [PATCH] showlog: Print initial states with the same color as non-initial ones When choosing colors, we've already filtered out the events we shouldn't print, so we should make no difference for them there. Signed-off-by: Andreas Ericsson --- showlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showlog.c b/showlog.c index 60deb62..ed5bb4a 100644 --- a/showlog.c +++ b/showlog.c @@ -138,7 +138,7 @@ static void print_line_ansi(int type, struct tm *t, char *line, uint len) { const char *color = NULL; - switch (type) { + switch (type & ~EVT_INITIAL) { case EVT_ALERT | EVT_HOST: case EVT_STATE | EVT_HOST: if (severity == HOST_UP) -- 2.11.4.GIT