Usb.cpp: Fix typos when unable to disable USB data

If Usb.cpp cannot write a zero value to the USB_DATA_PATH file, display
the message of "Not able to turn off usb connection notification".

Test: refactoring CL. Existing tests still pass.
Bug: 301016122
Change-Id: I8e0f485e74d10a0154e4cd78af9f5ef5a22d328f
This commit is contained in:
Kuen-Han Tsai 2023-09-19 19:31:16 +08:00 committed by Treehugger Robot
parent 45b53c05d0
commit f233bec505

View file

@ -148,7 +148,7 @@ ScopedAStatus Usb::enableUsbData(const string& in_portName, bool in_enable,
}
if (!WriteStringToFile("0", USB_DATA_PATH)) {
ALOGE("Not able to turn on usb connection notification");
ALOGE("Not able to turn off usb connection notification");
result = false;
}
}