Merge "Revert "Check against LOG_ID_MAX instead of LOG_ID_KERNEL""
am: 2bc8e32242

Change-Id: Ide666aec2b5822828b1c86b9430c6d6fbee303ff