[coreboot] [commit] r5112 - trunk/util/cbfstool
repository service
svn at coreboot.org
Wed Feb 10 20:52:36 CET 2010
Author: uwe
Date: Wed Feb 10 20:52:35 2010
New Revision: 5112
URL: http://tracker.coreboot.org/trac/coreboot/changeset/5112
Log:
Do not print the full path name to coreboot.rom in "cbfstool print" (trivial).
This makes the output look a lot nicer, e.g.
/home/uwe/foo/bar/baz/whatever/build/coreboot.rom: 256 kB, bootblocksize 65536, romsize 262144, offset 0x0
now becomes:
coreboot.rom: 256 kB, bootblocksize 65536, romsize 262144, offset 0x0
Signed-off-by: Uwe Hermann <uwe at hermann-uwe.de>
Acked-by: Uwe Hermann <uwe at hermann-uwe.de>
Modified:
trunk/util/cbfstool/common.c
Modified: trunk/util/cbfstool/common.c
==============================================================================
--- trunk/util/cbfstool/common.c Wed Feb 10 20:40:10 2010 (r5111)
+++ trunk/util/cbfstool/common.c Wed Feb 10 20:52:35 2010 (r5112)
@@ -21,6 +21,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <libgen.h>
#include "common.h"
#include "cbfs.h"
#include "elf.h"
@@ -153,7 +154,7 @@
{
printf
("%s: %d kB, bootblocksize %d, romsize %d, offset 0x%x\nAlignment: %d bytes\n\n",
- filename, romsize / 1024, ntohl(master_header->bootblocksize),
+ basename((char *)filename), romsize / 1024, ntohl(master_header->bootblocksize),
romsize, ntohl(master_header->offset), align);
printf("%-30s %-10s %-12s Size\n", "Name", "Offset", "Type");
uint32_t current = phys_start;
More information about the coreboot
mailing list