Merge "UEventObserver: Fix logging for uevent messages" into main
This commit is contained in:
@@ -71,7 +71,11 @@ static jstring nativeWaitForNextEvent(JNIEnv *env, jclass clazz) {
|
|||||||
}
|
}
|
||||||
buffer[length] = '\0';
|
buffer[length] = '\0';
|
||||||
|
|
||||||
ALOGV("Received uevent message: %s", buffer);
|
IF_ALOGV() {
|
||||||
|
std::string message(buffer, length);
|
||||||
|
std::replace(message.begin(), message.end(), '\0', ' ');
|
||||||
|
ALOGV("Received uevent message: %s", message.c_str());
|
||||||
|
}
|
||||||
|
|
||||||
if (isMatch(buffer, length)) {
|
if (isMatch(buffer, length)) {
|
||||||
// Assume the message is ASCII.
|
// Assume the message is ASCII.
|
||||||
|
|||||||
Reference in New Issue
Block a user