From 834c07a870081f33c0f509c348a0770d6ddaf0af Mon Sep 17 00:00:00 2001 From: "huanfeng.wang" Date: Tue, 21 May 2024 10:17:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=B9=B3=E5=8F=B0log?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E6=96=B9=E5=BC=8F=E4=B8=BA=E5=86=99=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- osp/src/ospLog.c | 2 +- osp/src/ospShell.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/osp/src/ospLog.c b/osp/src/ospLog.c index ed425b2..44c1699 100644 --- a/osp/src/ospLog.c +++ b/osp/src/ospLog.c @@ -31,7 +31,7 @@ int32_t osp_base_logid; uint32_t log_rand; uint32_t g_ulApeLogMode = 1; /*0: ape log日志写入文件 1: 网口输出ape log 2:ape log日志shell打印输出*/ /* 默认网口输出 */ uint32_t g_ulArmLogMode = 0; /*0: arm log日志写入文件 1: 网口输出arm log 2:arm log日志shell打印输出*/ -uint8_t g_ucPlatformMode = 1; /*0: platform log日志写入文件 1: 网口输出platform log 2:platform log日志shell打印输出*/ +uint8_t g_ucPlatformMode = 0; /*0: platform log日志写入文件 1: 网口输出platform log 2:platform log日志shell打印输出*/ uint8_t g_time_now[128]; uint8_t g_ucFflushEnable = 0; int32_t net_log_txudp_id = -1; /*吐网口log id*/ diff --git a/osp/src/ospShell.c b/osp/src/ospShell.c index 924a21e..9b39f36 100644 --- a/osp/src/ospShell.c +++ b/osp/src/ospShell.c @@ -1776,8 +1776,8 @@ void osp_server_cfg_show() uint32_t len = 0; char pbuf[2048]; - len = sprintf(pbuf,"ip:%s\nport:%u\napelog:%u\narmlog:%u\nlogpath:%s\n", \ - gst_server_log.ip, gst_server_log.ulport, g_ulApeLogMode, g_ulArmLogMode, gst_server_log.path); + len = sprintf(pbuf,"ip:%s\nport:%u\napelog:%u\narmlog:%u\nplatformlog:%u\nlogpath:%s\n", \ + gst_server_log.ip, gst_server_log.ulport, g_ulApeLogMode, g_ulArmLogMode, g_ucPlatformMode, gst_server_log.path); //printf("%s", pbuf); osp_net_shell_out(pbuf, len);