mirror of
https://github.com/nyanmisaka/mpp.git
synced 2025-09-29 14:32:07 +08:00
[rk_log]: change MODULE_TAG setting
default MODULE_TAG set to NULL, and reset to rk_log in rk_log modules git-svn-id: https://10.10.10.66:8443/svn/MediaProcessPlatform/trunk/mpp@44 6e48237b-75ef-9749-8fc9-41990f28c85a
This commit is contained in:
@@ -54,7 +54,7 @@ typedef signed long long int RK_S64;
|
||||
#endif
|
||||
|
||||
#ifndef MODULE_TAG
|
||||
#define MODULE_TAG "rk_mpp"
|
||||
#define MODULE_TAG NULL
|
||||
#endif
|
||||
|
||||
#endif /*__RK_TYPE_H__*/
|
||||
|
@@ -14,6 +14,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define MODULE_TAG "rk_log"
|
||||
#include <stdio.h>
|
||||
#include <stdarg.h>
|
||||
#include "rk_log.h"
|
||||
@@ -31,6 +32,8 @@ void _rk_log(const char *tag, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (NULL == tag)
|
||||
tag = MODULE_TAG;
|
||||
rk_log_callback(tag, fmt, args);
|
||||
va_end(args);
|
||||
return ;
|
||||
@@ -40,6 +43,8 @@ void _rk_err(const char *tag, const char *fmt, ...)
|
||||
{
|
||||
va_list args;
|
||||
va_start(args, fmt);
|
||||
if (NULL == tag)
|
||||
tag = MODULE_TAG;
|
||||
rk_err_callback(tag, fmt, args);
|
||||
va_end(args);
|
||||
return ;
|
||||
|
Reference in New Issue
Block a user