From 8b09c31e5f08835e22db53f4b20248c1bd0b7ec6 Mon Sep 17 00:00:00 2001 From: Kuen-Han Tsai Date: Tue, 19 Sep 2023 18:58:45 +0800 Subject: [PATCH] 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: I6ce626ed37c245dc1c23f25aff7e24befe9b7fe8 --- usb/usb/Usb.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } }