Skip to content

Commit

Permalink
modify:driver:modify the driver command printf
Browse files Browse the repository at this point in the history
  • Loading branch information
cruise2018 committed Jul 22, 2020
1 parent fbcf780 commit 81edb38
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 81edb38

Please sign in to comment.