1 /* 2 * include/linux/amlogic/media/utils/log.h 3 * 4 * Copyright (C) 2017 Amlogic, Inc. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14 * more details. 15 * 16 */ 17 18 #ifndef CODEC_LOG_HEADER 19 #define CODEC_LOG_HEADER 20 21 #include<linux/printk.h> 22 23 #ifndef INFO_PREFIX 24 #define INFO_PREFIX "codec" 25 #endif 26 /* 27 *#define codec_print(KERN_LEVEL, args...) \ 28 * printk(KERN_LEVEL INFO_PREFIX ":" args) 29 */ 30 #define codec_info(args...) pr_info(args) 31 #define codec_err(args...) pr_err(args) 32 #define codec_waring(args...) pr_warn(args) 33 /* 34 *#ifdef pr_info 35 *#undef pr_info 36 *#undef pr_err 37 *#undef pr_warn 38 *#undef pr_warning 39 * 40 *#define pr_info(args...) codec_info(args) 41 *#define pr_err(args...) codec_err(args) 42 *#define pr_warn(args...) codec_waring(args) 43 *#define pr_warning pr_warn 44 * 45 * 46 *#endif 47 */ 48 #endif 49