RTEMS | flashdisk.c: Invalid printf format string (#5112)

Joel Sherrill (@joel) gitlab at rtems.org
Thu Aug 8 21:07:32 UTC 2024



Joel Sherrill created an issue: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5112



## Summary

Coverity CID 1467406

Coverity spotted that line 1013 has an invalid printf format string.

```
1011    if ((flash_flags & page_desc->flags) != page_desc->flags)
1012    {
      	
CID 1467406: (#1 of 1): Invalid printf format string (PRINTF_ARGS)
format_error: Invalid conversion specifier in %04 .[show details]
1013      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "
1014                         "flags not erased: 0x%04 -> 0x%04x",
1015                         sc->device, sc->segment, page,
1016                         flash_flags, page_desc->flags);
1017      return ret;
1018    }
```


## Steps to reproduce

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5112
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20240808/2357b707/attachment.htm>


More information about the bugs mailing list