blob: 639f4ba846018fc3a42e53d402071a1ce2af110a
1 | /** |
2 | * \file log-print.h |
3 | * \brief Definitiond Of Print Functions |
4 | * \version 1.0.0 |
5 | * \date 2011-03-08 |
6 | */ |
7 | /* Copyright (C) 2007-2011, Amlogic Inc. |
8 | * All right reserved |
9 | * |
10 | */ |
11 | #ifndef LOG_PRINT_H |
12 | #define LOG_PRINT_H |
13 | |
14 | #ifdef ANDROID |
15 | #include <android/log.h> |
16 | #include <stdio.h> |
17 | #include <stdarg.h> |
18 | #include <string.h> |
19 | #define LOG_TAG "amadec" |
20 | #define adec_print(...) __android_log_print(ANDROID_LOG_INFO,LOG_TAG,__VA_ARGS__) |
21 | #else |
22 | #define adec_print(f,s...) fprintf(stderr,f,##s) |
23 | #endif |
24 | |
25 | |
26 | #endif |
27 |