JianyuWang0623 opened a new pull request, #3182:
URL: https://github.com/apache/nuttx-apps/pull/3182
## Summary
Fix format string not appropriate warning for cause.flag.
```
nsh_syscmds.c: In function 'cmd_reset_cause':
nsh_syscmds.c:513:24: error: format '%lu' expects argument of type 'long
unsigned int', but argument 4 has type 'uint32_t' {aka 'unsigned int'}
[-Werror=format=]
513 | nsh_output(vtbl, "%s(%lu)\n",
| ^~~~~~~~~~~
514 | g_resetcause[cause.cause], cause.flag);
| ~~~~~~~~~~
| |
| uint32_t {aka unsigned
int}
```
## Impact
- nshlib/reset_cause
## Testing
CI
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]