summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorUwe Hermann <uwe@hermann-uwe.de>2010-02-10 19:52:35 +0000
committerUwe Hermann <uwe@hermann-uwe.de>2010-02-10 19:52:35 +0000
commit942a40da3ae2688ab9303d54d8b0fffdd98002b7 (patch)
tree3fd9f9c598415ab0f8101cc16d4a8245749ed612 /util
parent9a432abf17a0b4152e6190624f2adfdd7cbfc444 (diff)
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@hermann-uwe.de> Acked-by: Uwe Hermann <uwe@hermann-uwe.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5112 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/cbfstool/common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/util/cbfstool/common.c b/util/cbfstool/common.c
index 5fb4e4c392..784e1f9f5f 100644
--- a/util/cbfstool/common.c
+++ b/util/cbfstool/common.c
@@ -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 @@ void print_cbfs_directory(const char *filename)
{
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;