The cbfstool print command should pretty-print the type of components that are

type 'deleted'.

Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Peter Stuge <peter@stuge.se>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4284 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Ward Vandewege 2009-05-14 03:00:15 +00:00
parent df042a18ec
commit 67befdc22b
1 changed files with 3 additions and 0 deletions

View File

@ -57,6 +57,9 @@ int print_handler(struct rom *rom, int argc, char **argv)
case CBFS_COMPONENT_NULL: case CBFS_COMPONENT_NULL:
strcpy(type, "free"); strcpy(type, "free");
break; break;
case CBFS_COMPONENT_DELETED:
strcpy(type, "deleted");
break;
default: default:
sprintf(type, "0x%8.8x", htonl(c->type)); sprintf(type, "0x%8.8x", htonl(c->type));
break; break;