[PATCH btbridge v3 2/4] Actually set the verbose flag with --debug

OpenBMC Patches openbmc-patches at stwcx.xyz
Thu Dec 10 15:40:04 AEDT 2015


From: Cyril Bur <cyril.bur at au1.ibm.com>

---
 btbridged.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/btbridged.c b/btbridged.c
index ab4880c..5eccc20 100644
--- a/btbridged.c
+++ b/btbridged.c
@@ -624,10 +624,12 @@ int main(int argc, char *argv[]) {
 		MSG_OUT("Found verbosity flag\n");
 
 	if (debug) {
-		if (!verbose)
+		if (!verbose) {
+			verbose = 1;
 			MSG_OUT("Turning on verbosity because debug flag found\n");
-		else
+		} else {
 			MSG_OUT("Found debug flag\n");
+		}
 	}
 
 	MSG_OUT("Starting\n");
-- 
2.6.3




More information about the openbmc mailing list