usb: dump flag value in the constructor
Dump flag value in the construtor for easier debugging. Feature flags are not expected to change in runtime, dumping the value once should be enough. Bug: 296119135 Test: manual test Change-Id: Ie5aca2dff23e59704fb306833cde0e592b9f430d
This commit is contained in:
parent
ca57c72496
commit
9164eae7cd
2 changed files with 8 additions and 0 deletions
|
@ -573,6 +573,11 @@ Usb::Usb()
|
|||
ALOGE("mDisplayPortActivateTimer timerfd failed: %s", strerror(errno));
|
||||
abort();
|
||||
}
|
||||
|
||||
ALOGI("feature flag enable_usb_data_compliance_warning: %d",
|
||||
usb_flags::enable_usb_data_compliance_warning());
|
||||
ALOGI("feature flag enable_input_power_limited_warning: %d",
|
||||
usb_flags::enable_input_power_limited_warning());
|
||||
}
|
||||
|
||||
ScopedAStatus Usb::switchRole(const string& in_portName, const PortRole& in_role,
|
||||
|
|
|
@ -164,6 +164,9 @@ UsbDataSessionMonitor::UsbDataSessionMonitor(
|
|||
ALOGE("pthread creation failed %d", errno);
|
||||
abort();
|
||||
}
|
||||
|
||||
ALOGI("feature flag enable_report_usb_data_compliance_warning: %d",
|
||||
usb_flags::enable_report_usb_data_compliance_warning());
|
||||
}
|
||||
|
||||
UsbDataSessionMonitor::~UsbDataSessionMonitor() {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue