Commit b7eefd9a authored by Stefan Reinauer's avatar Stefan Reinauer Committed by chrome-bot
Browse files

boot/bootdata: Use correct modifier for size_t

blen is of type size_t, so printing it requires the
modifier %zd.

TEST=USE=coreboot-sdk emerge-eve depthcharge

Change-Id: Iddf5362f003f8371687e7fa83d63d39f8ba0c3db
Signed-off-by: default avatarStefan Reinauer <>

Reviewed-by: default avatarDuncan Laurie <>
Reviewed-by: default avatarPatrick Georgi <>
parent 9ee4a955
......@@ -187,7 +187,7 @@ int bootdata_prepare(struct boot_info *bi)
// Ignore remaining space before the ramdisk
if ((blen < sizeof(bootdata_t)) || (blen & 7)) {
printf("%s: invalid bootdata length %d\n", __func__, blen);
printf("%s: invalid bootdata length %zd\n", __func__, blen);
return -1;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment