platform_system_core/logcat/tests
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
..
Android.bp Statically link liblog to logd/logcat and their tests 2019-01-17 11:37:22 -08:00
logcat_benchmark.cpp liblogcat: measure performance 2017-02-22 16:06:24 -08:00
logcat_test.cpp liblog: don't return 0xFFFFFFFF as an invalid log id. 2019-03-25 16:41:39 -07:00
logcatd_test.cpp logcatd: introduce logcatd executable 2017-04-04 08:01:50 -07:00