diff options
| author | Andrew Hsieh <andrewhsieh@google.com> | 2012-02-27 16:48:18 -0800 |
|---|---|---|
| committer | Andrew Hsieh <andrewhsieh@google.com> | 2012-02-29 17:00:46 -0800 |
| commit | d2c8f52189f8c2a13b88a107c6495f9d83196d2d (patch) | |
| tree | 2175cb5d16e0e2bc9970ae336f8be94a33c8bb09 /include | |
| parent | c958a7f4988f3dd98135b23619cdf55ec55bd1f6 (diff) | |
| download | system_core-d2c8f52189f8c2a13b88a107c6495f9d83196d2d.tar.gz system_core-d2c8f52189f8c2a13b88a107c6495f9d83196d2d.tar.bz2 system_core-d2c8f52189f8c2a13b88a107c6495f9d83196d2d.zip | |
Fixed two 64-bit porting issues; Make pid/tid type consistent
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
Diffstat (limited to 'include')
| -rw-r--r-- | include/cutils/logprint.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cutils/logprint.h b/include/cutils/logprint.h index 769c8a73..2b1e1c51 100644 --- a/include/cutils/logprint.h +++ b/include/cutils/logprint.h @@ -44,8 +44,8 @@ typedef struct AndroidLogEntry_t { time_t tv_sec; long tv_nsec; android_LogPriority priority; - pid_t pid; - pthread_t tid; + int32_t pid; + int32_t tid; const char * tag; size_t messageLen; const char * message; |
