[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:
ChenHengming
2015-08-06 06:59:06 +00:00
parent d85dcef551
commit 70a75a44c4
2 changed files with 6 additions and 1 deletions

View File

@@ -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__*/

View File

@@ -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 ;