Author: stepan
Date: 2008-08-01 13:20:33 +0200 (Fri, 01 Aug 2008)
New Revision: 3439
Modified:
trunk/coreboot-v2/util/buildrom/buildrom.c
Log:
fix build warnings for buildrom (trivial)
Signed-off-by: Stefan Reinauer <stepan(a)coresystems.de>
Acked-by: Stefan Reinauer <stepan(a)coresystems.de>
Modified: trunk/coreboot-v2/util/buildrom/buildrom.c
===================================================================
--- trunk/coreboot-v2/util/buildrom/buildrom.c 2008-08-01 11:20:09 UTC (rev 3438)
+++ trunk/coreboot-v2/util/buildrom/buildrom.c 2008-08-01 11:20:33 UTC (rev 3439)
@@ -66,15 +66,15 @@
fatal("stat of infile");
if (payloadbuf.st_size > (romsize - size)){
fprintf(stderr, "ERROR: payload (%d) + coreboot (%d) - Size is %d bytes larger than ROM size (%d).\n",
- payloadbuf.st_size, size,
- payloadbuf.st_size+size-romsize,
+ (int)payloadbuf.st_size, size,
+ (int)(payloadbuf.st_size+size-romsize),
romsize);
exit(1);
}
printf("Payload: %d coreboot: %d ROM size: %d Left space: %d\n",
- payloadbuf.st_size, size, romsize,
- romsize-payloadbuf.st_size-size);
+ (int)payloadbuf.st_size, size, romsize,
+ (int)(romsize-payloadbuf.st_size-size));
cp = malloc(romsize);
if (!cp)