librtas/librtas-1.4.0-do-not-enable-debug-message.patch
Vasant Hegde ee3a29be5a librtas: Do not enable debug message by default
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
2016-03-21 14:21:55 +05:30

33 lines
1018 B
Diff

From 23b6261c0205d834ab9aba67cb52e3f320c5058c Mon Sep 17 00:00:00 2001
From: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
Date: Tue, 15 Mar 2016 15:35:05 +0530
Subject: [PATCH] librtas: Do not enable debug message by default
Commit eae18de3 removed dbg1 macro. But accidently enabled logging debug
message by default. This is confusing end users. Hence remove logging
debug message by default.
Fixes: eae18de3 (librtas: Update the dbg() macro)
Signed-off-by: Vasant Hegde <hegdevasant@linux.vnet.ibm.com>
CC: Nathan Fontenot <nfont@linux.vnet.ibm.com>
---
librtas_src/syscall.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/librtas_src/syscall.h b/librtas_src/syscall.h
index 42edf8f..f84ef37 100644
--- a/librtas_src/syscall.h
+++ b/librtas_src/syscall.h
@@ -64,7 +64,7 @@ extern int dbg_lvl;
#define dbg(_fmt, _args...) \
do { \
- if (dbg_lvl >= 0) \
+ if (dbg_lvl > 0) \
printf("librtas %s(): " _fmt, __func__, ##_args); \
} while (0)
--
2.5.0