GP-7174/7175: Fixing string formatter

This commit is contained in:
Ryan Kurtz
2026-08-31 07:02:26 -04:00
parent 0423f95d0f
commit fef3f4c9a5
3 changed files with 4 additions and 4 deletions

View File

@@ -42,7 +42,7 @@ public class AndroidBootLoaderHeader implements StructConverter {
magic = reader.readNextAsciiString(AndroidBootLoaderConstants.BOOTLDR_MAGIC_SIZE);
numberOfImages = reader.readNextInt();
if (numberOfImages < 0 || numberOfImages > NUM_IMAGES_LIMIT) {
throw new IOException("Image count exceeds limit (%s): %s"
throw new IOException("Image count exceeds limit (%d): %d"
.formatted(NUM_IMAGES_LIMIT, numberOfImages));
}
startOffset = reader.readNextInt();