| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
For build-system CFLAGS clean-up, remove unused function.
Change-Id: I8c28c4bbbadaea6a5b32483e9e220794967bdd4e
|
|
|
|
|
| |
Bug: 18361583
Change-Id: Icdc745a5204bba26c6438d16ed38ec791e136163
|
|
|
|
|
|
|
|
|
|
|
| |
This patch adds a new '-v color' option to logcat so that the output is
colored similar to the ones in DDMS. Simply type "adb logcat -v color"
to use it. Works well with bash in gnome-terminal. NO GUARANTEE IT WILL
WORK ON A NON xterm STYLE TERMINAL.
Signed-off-by: Michael Zimmermann <sigmaepsilon92@gmail.com>
Signed-off-by: Mark Salyzyn <salyzyn@google.com>
Change-Id: I9189c5f27fed991579edbcbc6834536eb8112152
|
|
|
|
|
|
|
| |
- Deal with some -Wunused issues
- Cleanup UNUSED to __unused transition
Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8314
|
|
|
|
| |
Change-Id: Icd33808d4c974625f4fd0a126a90a2b4c90c8315
|
|
|
|
|
|
| |
(cherry picked from commit c176e14ce3fd28432e2eaca7bc7a60046dd8be40)
Change-Id: I34c96adffab3478dae8f5a2597a840caad5092cc
|
|
|
|
|
|
|
|
|
| |
- change cutils to liblog directory path
- change tabs to spaces
(cherry picked from commit c1215c0b46576771370ceb4e1b1d8fc5a7034cfd)
Change-Id: I7d9db1e2b817ba0ec9a224340c5c7535a2387fd5
|
|
|
|
|
|
|
|
|
| |
Move the liblog headers to log/ instead of cutils/ to complete
the separation of libcutils and liblog. cutils/log.h still
exists and includes log/log.h in order to support the many existing
modules that use cutils/log.h.
Change-Id: I2758c9f4aedcb809ca7ba8383d0f55041dd44345
|
|
|
|
|
|
|
|
| |
1. In printf, use "%zu" for variable of type size_t
2. Print tid in %5d
3. Make type of pid/tid in AndroidLogEntry and logger_entry consistent
Change-Id: I3e3d9536ee58823f349a4734ae093d30eabe1bfe
|
|
|
|
|
| |
Bug: 5522726
Change-Id: I8637c7da854ec1ecb321632c45ee9bc2edc94a67
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Testing:
The following test cases all passed and generated log entries:
# echo -n '\03foo\0bar\0' > /dev/log/main
# echo -n '\03\0bar\0' > /dev/log/main
# echo -n '\03\0a\0' > /dev/log/main
The following entries were successfully processed by
logcat but produced no log entries:
# echo -n '\03\0\0' > /dev/log/main
# echo -n '\03a\0\0' > /dev/log/main
# echo -n '\03b\0\0' > /dev/log/main
Also tested the pathological error condition:
cat /dev/urandom > /dev/log/main
which produced many "+++ LOG: malformed log entry" errors.
Bug: 5478600
Change-Id: I53bc79507242dcfc14445746c29edf47be0a90b4
|
|
|
|
|
|
|
|
|
| |
When parsing log entries which may have embedded \0s, it's
possible for entry->messageLen to not be the actual
length of the string in entry->message. Detect this condition.
Bug: 5417417
Change-Id: I712cac7696af7831e24765b5a1b345d6ff5fb407
|
|
|
|
|
|
|
| |
The log tag may be zero length if corrupted, so check for this
condition.
Change-Id: I7616226dabe78a85859b0ab53aca08f734dbdd84
|
|\
| |
| |
| | |
Change-Id: I698b3c16bdef8751cc857b00f815cb2f95465431
|
| |
| |
| |
| |
| |
| | |
snprintf has a weird return value. It returns what would have been written given a large enough buffer.
In the case that the prefix is longer then our buffer(128), it messes up the calculations below possibly causing heap corruption.
To avoid this we double check and set the length at the maximum (size minus null byte
|
|/
|
|
| |
macros work.
|
|
|
|
| |
2. removed unnecessary include of <alloca.h>
|
|
|