mirror of
https://github.com/apache/nuttx-apps.git
synced 2025-10-17 07:12:06 +08:00
nshlib: disable nsh error print if NSH_DISABLE_ERROR_PRINT enabled
text data bss dec hex filename 398953 27088 4128 430169 69059 nuttx /* before */ 389241 27072 4128 420441 66a59 nuttx /* after */ -9712 -16 Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
@@ -419,9 +419,8 @@ int cmd_hexdump(FAR struct nsh_vtbl_s *vtbl, int argc, FAR char **argv)
|
||||
|
||||
if (nbytesread < 0)
|
||||
{
|
||||
int errval = errno;
|
||||
nsh_error(vtbl, g_fmtcmdfailed, "hexdump", "read",
|
||||
NSH_ERRNO_OF(errval));
|
||||
NSH_ERRNO_OF(errno));
|
||||
ret = ERROR;
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user