Skip to content

Commit 7b92072

Browse files
committed
bbootimg: Present an hexadecimal dump of the bootimage name
* Allows seeing hidden chars as hexadecimal values Change-Id: Ie35813f75d59596d484f9aab0bc659dcf3ea8ffe
1 parent 42d1306 commit 7b92072

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/bbootimg.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,12 @@ static int print_info(const char *path)
294294
printf ("* image size = %ld bytes (%.2f MB)\n", size, (double)size/0x100000);
295295
printf (" page size = %u bytes\n\n", img.hdr.page_size);
296296

297-
printf ("* Boot Name = \"%s\"\n\n", name);
297+
printf ("* Boot Name = \"%s\" [ ", name);
298+
for (i = 0; i < BOOT_NAME_SIZE && name[i] != '\0'; ++i)
299+
{
300+
printf ("0x%02X ", name[i]);
301+
}
302+
printf ("]\n\n", name);
298303

299304
printf ("* kernel size = %u bytes (%.2f MB)\n", img.hdr.kernel_size, (double)img.hdr.kernel_size/0x100000);
300305
printf (" ramdisk size = %u bytes (%.2f MB)\n", img.hdr.ramdisk_size, (double)img.hdr.ramdisk_size/0x100000);

0 commit comments

Comments
 (0)