Files
nuttx-apps/nshlib
wangjianyu3 09f0f89e3a nshlib/reset_cause: Fix format warning for flag
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}

Signed-off-by: wangjianyu3 <wangjianyu3@xiaomi.com>
2025-09-17 10:07:24 +02:00
..
2024-12-30 18:02:50 +08:00
2024-12-30 18:02:50 +08:00
2024-12-30 18:02:50 +08:00
2024-12-30 18:02:50 +08:00
2024-12-30 18:02:50 +08:00
2024-12-30 18:02:50 +08:00
2025-04-20 00:41:18 +08:00