From 847219d90ea0b3aa4f2ea06d0e34837ef736f62f Mon Sep 17 00:00:00 2001 From: Andreas Ericsson Date: Mon, 7 Dec 2009 14:25:08 +0100 Subject: [PATCH] showlog: Fix statetype filter settings Previously we forgot to left-shift 1 by the setting selected. This patch takes care of it. Signed-off-by: Andreas Ericsson --- showlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/showlog.c b/showlog.c index 190c838..7a0bba4 100644 --- a/showlog.c +++ b/showlog.c @@ -353,9 +353,9 @@ int main(int argc, char **argv) } if (!strcmp(arg, "--state-type")) { if (!strcasecmp(opt, "hard")) - statetype_filter = HARD_STATE; + statetype_filter = (1 << HARD_STATE); if (!strcasecmp(opt, "soft")) - statetype_filter = HARD_STATE; + statetype_filter = (1 << SOFT_STATE); continue; } if (!strcmp(arg, "--host-states")) { -- 2.11.4.GIT