Merge branch 'dev_ck_v2.1_feature_enhancement1300' into 'dev_ck_v2.1'

由于fsync是阻塞的会丢失log,删除fsync调用#feature_enhancement1300

See merge request ucp/driver/ucp4008_platform_arm!34
This commit is contained in:
Xianfeng Du 2023-11-16 10:53:26 +00:00
commit 8e397886bd

View File

@ -511,9 +511,9 @@ void osp_net_log_proc(char *pMsg, uint32_t len, uint32_t port)
OSP_STATUS osp_write_diaglog(char *pbuf, uint32_t len ,uint32_t logid, uint32_t msg_type)
{
int32_t ret = 0;
int32_t ret = 0;
static FILE *file = NULL;
uint32_t fd;
/*uint32_t fd;*/
if (NULL == g_OspLogSem)
{
@ -564,6 +564,7 @@ OSP_STATUS osp_write_diaglog(char *pbuf, uint32_t len ,uint32_t logid, uint32_t
g_ucFflushEnable = 0;
}
#if 0 /*feature enhancement1300*/
fd = fileno(file);
ret = fsync(fd);
if(OSP_OK != ret)
@ -573,6 +574,7 @@ OSP_STATUS osp_write_diaglog(char *pbuf, uint32_t len ,uint32_t logid, uint32_t
osp_sem_give(g_OspLogSem);
return OSP_ERROR;
}
#endif
osp_sem_give(g_OspLogSem);