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
This commit is contained in:
mingzhu.wang 2023-04-13 17:55:47 +08:00
parent 82c43e8b92
commit 44d88ca703

View file

@ -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]);