diff options
author | Kuen-Han Tsai <khtsai@google.com> | 2023-09-19 18:50:06 +0800 |
---|---|---|
committer | Kuen-Han Tsai <khtsai@google.com> | 2023-12-06 02:27:57 +0000 |
commit | da999b58c66345a3a19d9e1828b1b2f8e89f7a6c (patch) | |
tree | 698296da534d9971546ece47d669b9c0d5d11691 | |
parent | 3620b2537bf69580039870239cae6b741ee40737 (diff) | |
download | bramble-da999b58c66345a3a19d9e1828b1b2f8e89f7a6c.tar.gz |
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: I14014fd776dff1d10d63c727bd9d2ddac6ea7221
-rw-r--r-- | usb/usb/Usb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usb/usb/Usb.cpp b/usb/usb/Usb.cpp index ed358cd..7abf239 100644 --- a/usb/usb/Usb.cpp +++ b/usb/usb/Usb.cpp @@ -93,7 +93,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; } } |