| /* |
| * include/linux/amlogic/media/utils/log.h |
| * |
| * Copyright (C) 2017 Amlogic, Inc. All rights reserved. |
| * |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation; either version 2 of the License, or |
| * (at your option) any later version. |
| * |
| * This program is distributed in the hope that it will be useful, but WITHOUT |
| * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
| * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
| * more details. |
| * |
| */ |
| |
| #ifndef CODEC_LOG_HEADER |
| #define CODEC_LOG_HEADER |
| |
| #include<linux/printk.h> |
| |
| #ifndef INFO_PREFIX |
| #define INFO_PREFIX "codec" |
| #endif |
| /* |
| *#define codec_print(KERN_LEVEL, args...) \ |
| * printk(KERN_LEVEL INFO_PREFIX ":" args) |
| */ |
| #define codec_info(args...) pr_info(args) |
| #define codec_err(args...) pr_err(args) |
| #define codec_waring(args...) pr_warn(args) |
| /* |
| *#ifdef pr_info |
| *#undef pr_info |
| *#undef pr_err |
| *#undef pr_warn |
| *#undef pr_warning |
| * |
| *#define pr_info(args...) codec_info(args) |
| *#define pr_err(args...) codec_err(args) |
| *#define pr_warn(args...) codec_waring(args) |
| *#define pr_warning pr_warn |
| * |
| * |
| *#endif |
| */ |
| #endif |