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

Commit 44d88ca7 authored by mingzhu.wang's avatar mingzhu.wang
Browse files

snapuserd_daemon: Modify incorrect print information

StartServerForUserspaceSnapshots function, if the child resulting from
the separation parameter number is not equal to 4, will be print
Malformed message: expected four sub-arguments, but at present there is
print three

Change-Id: Idc240714a65bc3eeb1e2b9958354de98ca4b329e
parent 82c43e8b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -110,7 +110,7 @@ bool Daemon::StartServerForUserspaceSnapshots(int arg_start, int argc, char** ar
    for (int i = arg_start; i < argc; i++) {
        auto parts = android::base::Split(argv[i], ",");
        if (parts.size() != 4) {
            LOG(ERROR) << "Malformed message, expected three sub-arguments.";
            LOG(ERROR) << "Malformed message, expected four sub-arguments.";
            return false;
        }
        auto handler = user_server_.AddHandler(parts[0], parts[1], parts[2], parts[3]);