libprocinfo: remove error msg for unknown process state.

Unknown process states are expected since libprocinfo doesn't
list all process states in
https://github.com/torvalds/linux/blob/master/fs/proc/array.c#L130.
So remove error message for unknown state.

Bug: none
Test: run libprocinfo_test.
Change-Id: I321893855235367e037afd58ccb63d5140619095
This commit is contained in:
Yabin Cui 2020-01-17 15:55:13 -08:00
parent d6289bdf13
commit 1c22b4fedf

View file

@ -59,7 +59,6 @@ static ProcessState parse_state(const char* state) {
case 'Z':
return kProcessStateZombie;
default:
LOG(ERROR) << "unknown process state: " << *state;
return kProcessStateUnknown;
}
}