android_system_core/logcat
Tom Cherry e17b4f62df Cleanup package_string() and its users
package_string() isn't readable in its current form and a loop is
unnecessary, so let's replace that with the direct calculations.  The
new and old functions are identical in results except an edge case
where the old function incorrectly believes it needs to round up to
'10' for the size prefix, when '9' would be ok, specifically:
10\naaaaa\n\f vs 9\naaaaa\n\f.  This is true for all powers of 10.

Clean up the calling side in logcat as well.

Test: printing log statistics and prune list works
Change-Id: Ib62ab2badab59040215b130ec9e3efbc7c95af3f
2019-12-06 13:55:08 -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 Cleanup package_string() and its users 2019-12-06 13:55:08 -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