nsh_dbgcmds.c: Appease nxstyle complaints
This commit is contained in:
parent
2b47187a83
commit
382284b43c
@ -98,7 +98,7 @@ static int mem_parse(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv,
|
||||
pcvalue++;
|
||||
|
||||
lvalue = strtoul(pcvalue, NULL, 16);
|
||||
if (lvalue > 0xffffffffL)
|
||||
if (lvalue > 0xffffffffl)
|
||||
{
|
||||
return -EINVAL;
|
||||
}
|
||||
@ -152,7 +152,8 @@ int cmd_mb(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
|
||||
{
|
||||
/* Loop for the number of requested bytes */
|
||||
|
||||
for (i = 0, ptr = (volatile uint8_t*)mem.dm_addr; i < mem.dm_count; i++, ptr++)
|
||||
for (i = 0, ptr = (volatile uint8_t *)mem.dm_addr; i < mem.dm_count;
|
||||
i++, ptr++)
|
||||
{
|
||||
/* Print the value at the address */
|
||||
|
||||
@ -262,7 +263,8 @@ int cmd_mw(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
|
||||
{
|
||||
/* Loop for the number of requested bytes */
|
||||
|
||||
for (i = 0, ptr = (volatile uint32_t*)mem.dm_addr; i < mem.dm_count; i += 4, ptr++)
|
||||
for (i = 0, ptr = (volatile uint32_t *)mem.dm_addr; i < mem.dm_count;
|
||||
i += 4, ptr++)
|
||||
{
|
||||
/* Print the value at the address */
|
||||
|
||||
@ -325,7 +327,8 @@ void nsh_dumpbuffer(FAR struct nsh_vtbl_s *vtbl, FAR const char *msg,
|
||||
if (i + j < nbytes)
|
||||
{
|
||||
ch = buffer[i + j];
|
||||
sprintf(&line[strlen(line)], "%c", ch >= 0x20 && ch <= 0x7e ? ch : '.');
|
||||
sprintf(&line[strlen(line)], "%c",
|
||||
ch >= 0x20 && ch <= 0x7e ? ch : '.');
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user