Change nfc.app_log_level property to nfc.debug_enabled (1/2)
Test: manual
Change-Id: I21e72ff3e8e456adf7999c4223cd42c0a9648c98
diff --git a/src/adaptation/NfcAdaptation.cc b/src/adaptation/NfcAdaptation.cc
index f497ae0..292dc5c 100644
--- a/src/adaptation/NfcAdaptation.cc
+++ b/src/adaptation/NfcAdaptation.cc
@@ -82,12 +82,12 @@
(NfcConfig::getUnsigned(NAME_NFC_DEBUG_ENABLED, 0) != 0) ? true : false;
char valueStr[PROPERTY_VALUE_MAX] = {0};
- int len = property_get("nfc.app_log_level", valueStr, "");
+ int len = property_get("nfc.debug_enabled", valueStr, "");
if (len > 0) {
// let Android property override .conf variable
- unsigned trace_level = 0;
- sscanf(valueStr, "%u", &trace_level);
- nfc_debug_enabled = (trace_level == 0) ? false : true;
+ unsigned debug_enabled = 0;
+ sscanf(valueStr, "%u", &debug_enabled);
+ nfc_debug_enabled = (debug_enabled == 0) ? false : true;
}
DLOG_IF(INFO, nfc_debug_enabled)