Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a0cf4ad9 authored by Ryan Prichard's avatar Ryan Prichard
Browse files

Use operator<< with String16 rather than char16_t*

std::stringstream's operator<< overload for char16_t* is deleted
after upgrading libc++ because it surprisingly outputs an address
rather than string content. See wg21.link/p1423r3.

Bug: 175635923
Test: m MODULES-IN-frameworks-native-cmds-cmd
Change-Id: I90602eca166d5da347f7efba22f21bc1a5d38a11
parent 325c1e10
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -95,7 +95,7 @@ public:
            flags = O_RDWR;
            flags = O_RDWR;
            checkRead = checkWrite = true;
            checkRead = checkWrite = true;
        } else {
        } else {
            mErrorLog << "Invalid mode requested: " << mode.c_str() << endl;
            mErrorLog << "Invalid mode requested: " << mode << endl;
            return -EINVAL;
            return -EINVAL;
        }
        }
        int fd = open(fullPath.c_str(), flags, S_IRWXU|S_IRWXG);
        int fd = open(fullPath.c_str(), flags, S_IRWXU|S_IRWXG);