paolo-caroni / ps3mca-ps1

A program to read and write PS1 memory card with the Memory Card Adaptor CECHZM1 (SCPH-98042)
GNU General Public License v3.0
57 stars 10 forks source link

Fix type specifiers to fprintf statements #1

Closed mistydemeo closed 7 years ago

mistydemeo commented 7 years ago

I noticed that a few of the printf statements use the wrong type specifier for one of the arguments. These were flagged by clang's -Wformat, for example:

main.c:1245:96: warning: format specifies type 'int' but the argument has type 'unsigned long' [-Wformat]
  ..."Received %d bytes, expected a maximum of %d  on frame %d.\n", numBytes, sizeof(ps1_ram_buffer), frame);
                                               ~~                             ^~~~~~~~~~~~~~~~~~~~~~
                                               %lu