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 | |
41 #include <log/uio.h> | 40 #include <log/uio.h> |
42 #include <log/logd.h> | 41 #include <log/logd.h> |
43 #else | |
44 #include <android/log.h> | |
45 #endif | |
46 | 42 |
47 #ifdef __cplusplus | 43 #ifdef __cplusplus |
48 extern "C" { | 44 extern "C" { |
49 #endif | 45 #endif |
50 | 46 |
51 // --------------------------------------------------------------------- | 47 // --------------------------------------------------------------------- |
52 | 48 |
53 /* | 49 /* |
54 * Normally we strip ALOGV (VERBOSE messages) from release builds. | 50 * Normally we strip ALOGV (VERBOSE messages) from release builds. |
55 * You can modify this (for example with "#define LOG_NDEBUG 0" | 51 * You can modify this (for example with "#define LOG_NDEBUG 0" |
(...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 */ | 554 */ |
559 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *te
xt); | 555 int __android_log_buf_write(int bufID, int prio, const char *tag, const char *te
xt); |
560 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fm
t, ...); | 556 int __android_log_buf_print(int bufID, int prio, const char *tag, const char *fm
t, ...); |
561 | 557 |
562 | 558 |
563 #ifdef __cplusplus | 559 #ifdef __cplusplus |
564 } | 560 } |
565 #endif | 561 #endif |
566 | 562 |
567 #endif // _LIBS_CUTILS_LOG_H | 563 #endif // _LIBS_CUTILS_LOG_H |
OLD | NEW |