Impose log length restrictions

For stm_log() (strings) logging impose a maximum of 1024 bytes of
user data (forced truncation and NULL termination).  For stm_logbin()
(binary) logging split logs larger than 2048 bytes of user data
into individual log packets of up to 2KB of user data per log.

Change-Id: I0be9a1788e54f41a3d675552cb2f81b79a0e5ab8
2 files changed
tree: be5cd8a4850b882ce3e8f710c26d956e9ef0641a
  1. Android.mk
  2. stm-log.c
  3. stm-log.h
  4. stm-log.txt