[irqbalance] [PATCH 3/5] irqbalance: set IRQBALANCE_DEBUG variable implies foreground mode

  • From: Petr Holasek <pholasek@xxxxxxxxxx>
  • To: irqbalance@xxxxxxxxxxxxx
  • Date: Wed, 18 Mar 2015 15:57:56 +0100

Signed-off-by: Petr Holasek <pholasek@xxxxxxxxxx>
---
 irqbalance.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/irqbalance.c b/irqbalance.c
index 29967ba..226fcc6 100644
--- a/irqbalance.c
+++ b/irqbalance.c
@@ -279,8 +279,10 @@ int main(int argc, char** argv)
        if (getenv("IRQBALANCE_ONESHOT")) 
                one_shot_mode=1;
 
-       if (getenv("IRQBALANCE_DEBUG")) 
+       if (getenv("IRQBALANCE_DEBUG")) {
                debug_mode=1;
+               foreground_mode=1;
+       }
 
        /*
         * If we are't in debug mode, don't dump anything to the console
-- 
2.1.0


Other related posts:

  • » [irqbalance] [PATCH 3/5] irqbalance: set IRQBALANCE_DEBUG variable implies foreground mode - Petr Holasek