summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuen-Han Tsai <khtsai@google.com>2023-09-19 18:50:06 +0800
committerKuen-Han Tsai <khtsai@google.com>2023-12-06 02:27:57 +0000
commitda999b58c66345a3a19d9e1828b1b2f8e89f7a6c (patch)
tree698296da534d9971546ece47d669b9c0d5d11691
parent3620b2537bf69580039870239cae6b741ee40737 (diff)
downloadbramble-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.cpp2
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;
}
}