summaryrefslogtreecommitdiffstats
path: root/liblog
Commit message (Collapse)AuthorAgeFilesLines
...
* Added rules to build 64-bit libraries: lib64cutils.a and lib64log.aAndrew Hsieh2012-03-011-0/+12
| | | | | | | | | | | Both libraries are needed to build four shared libraries in 64-bit for 64-bit emulator with "-gpu on" lib64OpenglRender.so lib64EGL_translator.so lib64GLES_CM_translator.so lib64GLES_V2_translator.so Change-Id: If57f72d4661a74f1d5e537568881f39132e0b43d
* Fixed two 64-bit porting issues; Make pid/tid type consistentAndrew Hsieh2012-02-292-8/+8
| | | | | | | | 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
* Gracefully handle truncated log messages.Jeff Sharkey2011-10-261-6/+23
| | | | | Bug: 5522726 Change-Id: I8637c7da854ec1ecb321632c45ee9bc2edc94a67
* liblog: do better checks of log messages.Nick Kralevich2011-10-181-14/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* liblog: ensure that the message length is consistentNick Kralevich2011-10-171-1/+7
| | | | | | | | | 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
* Add checking for log entry formatKenny Root2011-10-031-4/+16
| | | | | | | The log tag may be zero length if corrupted, so check for this condition. Change-Id: I7616226dabe78a85859b0ab53aca08f734dbdd84
* Remove the simulator target from all makefiles.Jeff Brown2011-07-111-21/+10
| | | | | | Bug: 5010576 Change-Id: I2fcf31af681d92880e5d31a46d5f6777f7ca1977
* Fix SDK build.Brett Chabot2011-06-273-31/+0
| | | | | | Revert "Fix build warnings" This reverts commit 590e364868b6466e169f2647e95462ba2558dd00.
* Fix build warningsGlenn Kasten2011-06-243-0/+31
| | | | Change-Id: Ie24cf8e729813e4527c698fc7c1502a1efbc63e5
* am 64ba76c1: merge from open-source masterThe Android Open Source Project2010-07-161-7/+18
|\ | | | | | | | | | | | | Merge commit '64ba76c1431afe17c1f4553f1dbc595db064316e' * commit '64ba76c1431afe17c1f4553f1dbc595db064316e': Fixed LOG_ASSERT() compilation errors in native debug builds.
| * Fixed LOG_ASSERT() compilation errors in native debug builds.Chris Pearson2010-07-161-7/+18
| | | | | | | | | | | | | | | | | | | | | | | | Invoking LOG_ASSERT, LOG_ALWAYS_FATAL or LOG_ALWAYS_FATAL_IF variadic macros without the printf format string arg caused compilation errors because the variable arg list (__VA_ARGS__) was eventually passed to __android_log_assert() func in place of a required parameter. This error only occured in debug builds because LOG_ASSERT() is a no-op in release builds. This change allows debug builds to succeed. Change-Id: I7e7b7de3e501133468ce083e0e0d6e699dd59667 Signed-off-by: Chris Pearson <christopherx.c.pearson@intel.com>
* | Fix a long standing bug in the output buffer size computation.Carl Shapiro2010-04-091-1/+1
|/ | | | Change-Id: I55aca04fdd3822ac06db183bf2ff0cbd61f778e8
* merge from open-source masterThe Android Open Source Project2010-03-081-0/+10
|\ | | | | | | Change-Id: I698b3c16bdef8751cc857b00f815cb2f95465431
| * Fix Heap Corruption from too long of a TAGKeith Preston2010-02-181-0/+10
| | | | | | | | | | | | 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
| * eclair snapshotJean-Baptiste Queru2009-11-122-6/+1
| |
| * AI 144185: Integrate cdma into the main code base.Wink Saville2009-04-021-1/+5
| | | | | | | | Automated import of CL 144185
| * Automated import from //branches/donutburger/...@140818,140818Dianne Hackborn2009-03-241-0/+190
| |
* | remove stray printfs.Joe Onorato2010-03-031-2/+0
| |
* | Make logcat print both the main and system buffers by default. Make SLOGx ↵Joe Onorato2010-03-012-17/+52
| | | | | | | | macros work.
* | Route all log tags with "RIL" prefix to radio buffer.John Michelau2009-08-191-5/+1
| |
* | Merge branch 'readonly-p4-master'Wink Saville2009-04-021-1/+5
|\ \
| * | AI 144245: Fix merge conflict for megering in the CDMA changes in to master ↵Wink Saville2009-04-021-1/+5
| | | | | | | | | | | | | | | | | | from donutburger. Automated import of CL 144245
| * | Automated import from //branches/master/...@140824,140824Dianne Hackborn2009-03-241-0/+190
| |/
* | Merge commit 'korg/cupcake'The Android Open Source Project2009-03-271-0/+190
|\ \
| * | auto import from //branches/cupcake_rel/...@141571The Android Open Source Project2009-03-191-0/+190
| |/
* | Merge commit 'remotes/korg/cupcake' into mergeJean-Baptiste Queru2009-03-182-8/+16
|\ \ | |/ | | | | | | | | Conflicts: init/devices.c libpixelflinger/Android.mk
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-035-0/+2397
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-035-2389/+0
| |
| * auto import from //branches/cupcake/...@131421The Android Open Source Project2009-02-131-1/+1
| |
* | auto import from //branches/cupcake/...@126645android-build SharedAccount2009-01-151-0/+1
|\ \ | |/
| * auto import from //branches/cupcake/...@126645The Android Open Source Project2009-01-151-0/+1
| |
* | 1. added macro definitions to AndroidConfig.hAlexey Tarasov2008-11-071-1/+0
|/ | | | 2. removed unnecessary include of <alloca.h>
* Initial ContributionThe Android Open Source Project2008-10-215-0/+2388