Skip to content

Commit

Permalink
Merge pull request #405 from cruise2018/iot_link
Browse files Browse the repository at this point in the history
modify:driver:modify the driver command printf
  • Loading branch information
cruise2018 authored Jul 22, 2020
2 parents 70d6e64 + 81edb38 commit 463a0c9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions iot_link/driver/driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
Expand Down

0 comments on commit 463a0c9

Please sign in to comment.