diff options
| author | Mark Salyzyn <salyzyn@google.com> | 2015-08-26 09:30:00 -0700 |
|---|---|---|
| committer | Mark Salyzyn <salyzyn@google.com> | 2015-09-11 14:51:41 +0000 |
| commit | 805ef688af4035ac45e79428a1b6328bd0b465d2 (patch) | |
| tree | 14ef80a15aa7eeb1f7182b3c3e65fdaca9dd4b0b /libutils/Unicode_test.cpp | |
| parent | a6c377b2f62175d6d5268c63885de3d882edbe2b (diff) | |
logd: klogd and Mediatek
(cherry pick from commit 46d159d4626ca5d5667b739792840c3178a1457b)
- sniff for PID in kernel log messages if available
- properly deal with klogd watermark in face of modified output
- deal more stringently with priority tag, must have [ following
- suppress process-name stutter in tag that can happen
- do not use : to demark tag if within [ ]
Mediatek-special change that adds <printk_state>(<cpu>)[<pid>:<comm>]
as a prefix to the printk messages. Along the lines of (simplified
for entertainment purposes, YMMV):
char tbuf[50]; /* printk prefix */
int this_cpu = smp_processor_id();
char state = __raw_get_cpu_var(printk_state);
unsigned tlen = snprintf(tbuf, sizeof(tbuf), "%c(%x)[%d:%s]",
state, this_cpu, current->pid, current->comm);
Bug: 23517551
Change-Id: I568e25c5aa6d8474835454a0e83b19c2921b7985
Diffstat (limited to 'libutils/Unicode_test.cpp')
0 files changed, 0 insertions, 0 deletions
