Avoid using %# printf specifier

This commit is contained in:
Rangi42
2023-11-02 11:20:49 -04:00
committed by Eldred Habert
parent b4dbb5093a
commit a64f28de5c
7 changed files with 22 additions and 21 deletions

View File

@@ -969,7 +969,7 @@ static void processFile(int input, int output, char const *name, off_t fileSize)
overwriteByte(rom0, 0x14B, oldLicensee, "old licensee code");
else if (sgb && rom0[0x14B] != 0x33)
fprintf(stderr,
"warning: SGB compatibility enabled, but old licensee was %#x, not 0x33\n",
"warning: SGB compatibility enabled, but old licensee was 0x%02x, not 0x33\n",
rom0[0x14B]);
if (romVersion != UNSPECIFIED)
@@ -1440,7 +1440,7 @@ do { \
if (sgb && oldLicensee != UNSPECIFIED && oldLicensee != 0x33)
fprintf(stderr,
"warning: SGB compatibility enabled, but old licensee is %#x, not 0x33\n",
"warning: SGB compatibility enabled, but old licensee is 0x%02x, not 0x33\n",
oldLicensee);
argv += musl_optind;