From 81edb38d06bde0a2b17ed9b2828b1afad894e78f Mon Sep 17 00:00:00 2001 From: "zhangqianfu@huawei.com" Date: Wed, 22 Jul 2020 16:54:34 +0800 Subject: [PATCH] modify:driver:modify the driver command printf --- iot_link/driver/driver.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iot_link/driver/driver.c b/iot_link/driver/driver.c index cc035fa84..9bcb86fa5 100644 --- a/iot_link/driver/driver.c +++ b/iot_link/driver/driver.c @@ -589,18 +589,18 @@ static int __driv_show_shell(int argc,const char *argv[]) if(osal_mutex_lock(s_los_driv_module.lock)) { - LINK_LOG_DEBUG("%s:total %d drivers\n\r",__FUNCTION__,s_los_driv_module.drivnum); + link_printf("%s:total %d drivers\n\r",__FUNCTION__,s_los_driv_module.drivnum); if(s_los_driv_module.drivnum != 0) //print all the driver { - LINK_LOG_DEBUG("%-16s %-8s %-8s %-8s %-8s %-8s %-8s\r\n",\ - "drivername","flagmask","status","writbyte","readbyte","open","errno"); + link_printf("%-16s %-8s %-8s %-8s %-8s %-8s %-8s\r\n",\ + "drivername","flagmask","status","writbyte","readbyte","open","errno"); driv = s_los_driv_module.drivlst; while(NULL != driv) { - LINK_LOG_DEBUG("%-16s %08x %08x %08x %08x %08x %08x\r\n",driv->name,driv->flagmask,\ - driv->drivstatus,driv->total_write,driv->total_read,driv->opencounter,driv->errno); + link_printf("%-16s %08x %08x %08x %08x %08x %08x\r\n",driv->name,driv->flagmask,\ + driv->drivstatus,driv->total_write,driv->total_read,driv->opencounter,driv->errno); driv=driv->nxt; } }