Home | History | Annotate | Download | only in jni
      1 /*
      2  *
      3  * Copyright 2001-2011 Texas Instruments, Inc. - http://www.ti.com/
      4  *
      5  * Licensed under the Apache License, Version 2.0 (the "License");
      6  * you may not use this file except in compliance with the License.
      7  * You may obtain a copy of the License at
      8  *
      9  *     http://www.apache.org/licenses/LICENSE-2.0
     10  *
     11  * Unless required by applicable law or agreed to in writing, software
     12  * distributed under the License is distributed on an "AS IS" BASIS,
     13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     14  * See the License for the specific language governing permissions and
     15  * limitations under the License.
     16  */
     17 
     18 #ifndef _V4L2_JBTL_LOG__H
     19 #define _V4L2_JBTL_LOG__H
     20 
     21 #include "utils/Log.h"
     22 
     23 
     24 /*
     25  * Log a verbose log mesage.
     26  */
     27 #define V4L2_JBTL_LOGV(...) ALOGV( __VA_ARGS__)
     28 #define V4L2_JBTL_LOGV_IF(cond, ...) ALOGV_IF(cond, __VA_ARGS__)
     29 
     30 /*
     31  * Log a debug log mesage.
     32  */
     33 #define V4L2_JBTL_LOGD(...) ALOGD( __VA_ARGS__)
     34 #define V4L2_JBTL_LOGD_IF(cond, ...) ALOGD_IF(cond, __VA_ARGS__)
     35 
     36 /*
     37  * Log a informational log mesage.
     38  */
     39 #define V4L2_JBTL_LOGI(...) ALOGI( __VA_ARGS__)
     40 #define V4L2_JBTL_LOGI_IF(cond, ...) ALOGI_IF(cond, __VA_ARGS__)
     41 
     42 /*
     43  * Log a warning log mesage.
     44  */
     45 #define V4L2_JBTL_LOGW(...) ALOGW( __VA_ARGS__)
     46 #define V4L2_JBTL_LOGW_IF(cond, ...) ALOGW_IF(cond, __VA_ARGS__)
     47 
     48 /*
     49  * Log a error log mesage.
     50  */
     51 #define V4L2_JBTL_LOGE(...) ALOGE( __VA_ARGS__)
     52 #define V4L2_JBTL_LOGE_IF(cond, ...) ALOGE_IF(cond, __VA_ARGS__)
     53 
     54 
     55 /*
     56  * Log a fatal log message.
     57  */
     58 #define V4L2_JBTL_LOG_FATAL(...) ALOG_FATAL(__VA_ARGS__)
     59 #define V4L2_JBTL_LOG_FATAL_IF(cond, ...) ALOG_FATAL_IF(cond, __VA_ARGS__)
     60 
     61 
     62 /*
     63  * Assertion
     64  */
     65 #define V4L2_JBTL_LOG_ASSERT(cond, ...) ALOG_ASSERT(cond, __VA_ARGS__)
     66 
     67 
     68 #endif // _V4L2_JBTL_LOG__H
     69 
     70