| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 The Android Open Source Project | 2 * Copyright (C) 2005 The Android Open Source Project |
| 3 * | 3 * |
| 4 * Licensed under the Apache License, Version 2.0 (the "License"); | 4 * Licensed under the Apache License, Version 2.0 (the "License"); |
| 5 * you may not use this file except in compliance with the License. | 5 * you may not use this file except in compliance with the License. |
| 6 * You may obtain a copy of the License at | 6 * You may obtain a copy of the License at |
| 7 * | 7 * |
| 8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 * | 9 * |
| 10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 #include <stdio.h> | 31 #include <stdio.h> |
| 32 #include <time.h> | 32 #include <time.h> |
| 33 #include <sys/types.h> | 33 #include <sys/types.h> |
| 34 #include <unistd.h> | 34 #include <unistd.h> |
| 35 #ifdef HAVE_PTHREADS | 35 #ifdef HAVE_PTHREADS |
| 36 #include <pthread.h> | 36 #include <pthread.h> |
| 37 #endif | 37 #endif |
| 38 #include <stdarg.h> | 38 #include <stdarg.h> |
| 39 | 39 |
| 40 #ifdef ANDROID |
| 40 #include <log/uio.h> | 41 #include <log/uio.h> |
| 41 #include <log/logd.h> | 42 #include <log/logd.h> |
| 43 #else |
| 44 #include <android/log.h> |
| 45 #endif |
| 42 | 46 |
| 43 #ifdef __cplusplus | 47 #ifdef __cplusplus |
| 44 extern "C" { | 48 extern "C" { |
| 45 #endif | 49 #endif |
| 46 | 50 |
| 47 // --------------------------------------------------------------------- | 51 // --------------------------------------------------------------------- |
| 48 | 52 |
| 49 /* | 53 /* |
| 50 * Normally we strip ALOGV (VERBOSE messages) from release builds. | 54 * Normally we strip ALOGV (VERBOSE messages) from release builds. |
| 51 * You can modify this (for example with "#define LOG_NDEBUG 0" | 55 * You can modify this (for example with "#define LOG_NDEBUG 0" |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 554 */ | 558 */ |
| 555 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *te
xt); | 559 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *te
xt); |
| 556 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fm
t, ...); | 560 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fm
t, ...); |
| 557 | 561 |
| 558 | 562 |
| 559 #ifdef __cplusplus | 563 #ifdef __cplusplus |
| 560 } | 564 } |
| 561 #endif | 565 #endif |
| 562 | 566 |
| 563 #endif // _LIBS_CUTILS_LOG_H | 567 #endif // _LIBS_CUTILS_LOG_H |
| OLD | NEW |