Files
mpp/osal/test/mpp_log_test.c
2015-08-07 09:00:27 +00:00

39 lines
998 B
C

/*
* Copyright 2010 Rockchip Electronics S.LSI Co. LTD
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#define MODULE_TAG "rk_log_test"
#include "mpp_log.h"
int main()
{
RK_U32 flag = 0xffff;
rk_err("mpp error log test start\n");
rk_log("mpp log flag: %08x\n", rk_get_log_flag());
rk_log("set flag to %08x\n", flag);
rk_set_log_flag(flag);
rk_log("mpp log flag: %08x\n", rk_get_log_flag());
rk_err("mpp error log test done\n");
return 0;
}