diff options
author | Kuen-Han Tsai <khtsai@google.com> | 2023-09-19 16:37:20 +0800 |
---|---|---|
committer | Kuen-Han Tsai <khtsai@google.com> | 2023-09-19 17:03:16 +0800 |
commit | 3ce6a5fe2e962c1e4dd286f6f9dfa3957515499b (patch) | |
tree | 4a82b470a8e192bfddbb678cb86fddecd52eec59 | |
parent | 9b743e5938d7be85ad51b33a65c14c03cc219495 (diff) | |
download | zuma-3ce6a5fe2e962c1e4dd286f6f9dfa3957515499b.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: I5d2c24154bd1d2c20810bcb4db0a3b2cc575fcfe
-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 5594bff..858a7ac 100644 --- a/usb/usb/Usb.cpp +++ b/usb/usb/Usb.cpp @@ -128,7 +128,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; } |