summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKuen-Han Tsai <khtsai@google.com>2023-09-19 19:31:16 +0800
committerTreehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com>2023-09-21 09:54:59 +0000
commitf233bec505ca7c44aa199277b04a81138a1c024f (patch)
tree24f2eb8cbf7769cd33755b230b63cf23e1ba1412
parent45b53c05d0c130f23dac1efca687b2acbdb45168 (diff)
downloadgs201-f233bec505ca7c44aa199277b04a81138a1c024f.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: I8e0f485e74d10a0154e4cd78af9f5ef5a22d328f
-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 e4f0b35..0cbc98c 100644
--- a/usb/usb/Usb.cpp
+++ b/usb/usb/Usb.cpp
@@ -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;
}
}