Changeset 5112


Ignore:
Timestamp:
Feb 10, 2010, 7:52:35 PM (6 years ago)
Author:
uwe
Message:

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@…>
Acked-by: Uwe Hermann <uwe@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/util/cbfstool/common.c

    r5004 r5112  
    2222#include <stdlib.h>
    2323#include <string.h>
     24#include <libgen.h>
    2425#include "common.h"
    2526#include "cbfs.h"
     
    154155        printf
    155156            ("%s: %d kB, bootblocksize %d, romsize %d, offset 0x%x\nAlignment: %d bytes\n\n",
    156              filename, romsize / 1024, ntohl(master_header->bootblocksize),
     157             basename((char *)filename), romsize / 1024, ntohl(master_header->bootblocksize),
    157158             romsize, ntohl(master_header->offset), align);
    158159        printf("%-30s %-10s %-12s Size\n", "Name", "Offset", "Type");
Note: See TracChangeset for help on using the changeset viewer.