From c54484befc371502a618c09238f2ca2aca74525c Mon Sep 17 00:00:00 2001 From: Laurent Vivier Date: Sat, 23 Sep 2006 22:09:08 +0000 Subject: [PATCH] Display patch info --- tools/emile_scanbus.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/emile_scanbus.c b/tools/emile_scanbus.c index c6259f4..d2a0386 100644 --- a/tools/emile_scanbus.c +++ b/tools/emile_scanbus.c @@ -131,7 +131,7 @@ void diskinfo(char* device) &block, &size, &type); printf(" %d: base: %d size: %d type: 0x%04x", j, block * block_size / 512, - size * block_size / 512 , type); + size * block_size / 512, type); part = emile_map_seek_driver_partition(map, block * block_size / 512 ); if (part == -1) @@ -183,6 +183,10 @@ void diskinfo(char* device) int bootstart, bootsize, bootaddr, bootentry; int checksum; char processor[16]; + if (*(unsigned long*) + (emile_map_get_partition_type(map) + 28)) + printf(" patch: %s\n", + emile_map_get_partition_type(map) + 28); ret = emile_map_get_partition_geometry(map, &start,