platform_system_core/logcat
Josh Gao c6ad69d1d4 liblog: don't return 0xFFFFFFFF as an invalid log id.
There are a bunch of branches that check "id >= LOG_ID_MAX", but because
C++ hates you, this does a promotion to signed int despite the
fact that both sides of the comparison are the same enum with an
underlying type of unsigned int. (C++17 §7.6.3)

Return LOG_ID_MAX instead of a value that gets promoted to signed -1, to
avoid this.

Bug: http://b/129272512
Test: /data/nativetest64/logcat-unit-tests/logcat-unit-tests
Change-Id: I4b3ee662d76d5cc80d9a9625d17f7e5b5980de41
2019-03-25 16:41:39 -07:00
..
tests liblog: don't return 0xFFFFFFFF as an invalid log id. 2019-03-25 16:41:39 -07:00
Android.bp DO NOT MERGE: Revert "Revert "Add dependencies on libprocessgroup for sched_policy users"" 2019-01-25 16:49:18 +00:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
OWNERS Add OWNERS. 2017-12-07 13:30:03 -08:00
event.logtags add event log range for audioserver 2018-07-10 14:21:38 -07:00
logcat.cpp DO NOT MERGE: Revert "Revert "Add dependencies on libprocessgroup for sched_policy users"" 2019-01-25 16:49:18 +00:00
logcat.h logcat: tidy "logcat.h". 2018-06-18 10:16:46 -07:00
logcat_main.cpp Remove liblogcat. 2018-06-15 15:32:52 -07:00
logcatd.rc logcat: logcatd: make logcatd killable 2017-05-31 11:27:22 -07:00
logcatd_main.cpp Remove liblogcat. 2018-06-15 15:32:52 -07:00
logpersist logcatd: fix up logpersist.cat to filter out signature file 2016-08-08 10:20:22 -07:00