android_system_core/logcat
Tom Cherry ed860ff4bf Make android_logger_set_prune_list() sane
The current version requires callers to supply a string with 32 extra
bytes for liblog to internally prepend "setPruneList ", and to have
enough space to parse logd's return string.  That is an unacceptable
requirement on callers.

This change removes that requirement by having liblog allocate the
needed std::string in any case.

It also stops writing back the 'success' or 'Invalid' string to the
caller's buffer, since that is redundant as well.

Test: changing prune settings works.
Change-Id: Ic0f03a229f0b9a77d03adcb91288370c3bd42903
2019-12-06 11:23:58 -08:00
..
tests liblog: don't return 0xFFFFFFFF as an invalid log id. 2019-03-25 16:41:39 -07:00
Android.bp logcat: fix logcatd / logpersist 2019-10-31 06:43:47 -07:00
event.logtags Logtags for com.android.server.policy 2019-03-26 12:36:53 -07:00
logcat.cpp Make android_logger_set_prune_list() sane 2019-12-06 11:23:58 -08:00
logcatd logcat: fix logcatd / logpersist 2019-10-31 06:43:47 -07:00
logcatd.rc logcatd: fallocate and fadvise to logcat files 2019-09-04 22:45:48 +00:00
logpersist logcat: fix logpersist.stop and logpersist.clear 2019-10-31 06:43:47 -07: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