Author: stepan Date: 2007-04-12 01:36:02 +0200 (Thu, 12 Apr 2007) New Revision: 2604
Modified: trunk/LinuxBIOSv2/util/buildrom/buildrom.c Log: Trivial patch: Make buildrom a little bit more verbose. It shows the remaining space in an image now.
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/LinuxBIOSv2/util/buildrom/buildrom.c =================================================================== --- trunk/LinuxBIOSv2/util/buildrom/buildrom.c 2007-04-11 23:31:45 UTC (rev 2603) +++ trunk/LinuxBIOSv2/util/buildrom/buildrom.c 2007-04-11 23:36:02 UTC (rev 2604) @@ -65,10 +65,17 @@ if (fstat(payloadfd, &payloadbuf) < 0) fatal("stat of infile"); if (payloadbuf.st_size > (romsize - size)){ - fprintf(stderr, "payload (%d) + linuxbios (%d) size larger than ROM (%d) size!\n", payloadbuf.st_size, size, romsize); + fprintf(stderr, "ERROR: payload (%d) + linuxbios (%d) - Size is %d bytes larger than ROM size (%d).\n", + payloadbuf.st_size, size, + payloadbuf.st_size+size-romsize, + romsize); exit(1); }
+ printf("Payload: %d LinuxBIOS: %d ROM size: %d Left space: %d\n", + payloadbuf.st_size, size, romsize, + romsize-payloadbuf.st_size-size); + cp = malloc(romsize); if (!cp) fatal("malloc buffer");