cake
/
p7utils
Archived
1
0
Fork 0

Slightly corrected dumping

This commit is contained in:
Thomas Touhey 2016-12-27 15:31:33 +01:00
parent 068d36de58
commit 45059bd918
1 changed files with 16 additions and 16 deletions

View File

@ -48,35 +48,35 @@ int dump(p7_handle_t *handle)
printf("Preprogrammed ROM version : %02u.%02u.%04u\n",
info.preprog_rom_version.major, info.preprog_rom_version.minor,
info.preprog_rom_version.rev);
printf("Preprogrammed ROM type : \"%s\"\n",
printf("Preprogrammed ROM type : %s\n",
info.preprog_rom_version.type);
}
/* - ROM - */
printf("ROM capacity : " numformat "o\n", info.flash_rom_capacity);
printf("ROM capacity: " numformat "o\n", info.flash_rom_capacity);
/* - RAM - */
printf("RAM capacity : " numformat "o\n", info.ram_capacity);
printf("RAM capacity: " numformat "o\n", info.ram_capacity);
/* - Bootcode - */
if (!info.bootcode_wiped) {
printf("Bootcode version : %02u.%02u.%02u\n",
printf("Bootcode version: %02u.%02u.%02u\n",
info.bootcode_version.major, info.bootcode_version.minor,
info.bootcode_version.rev);
printf("Bootcode type : \"%s\"\n", info.bootcode_version.type);
printf("Bootcode offset : " addrformat "\n", info.bootcode_offset);
printf("Bootcode size : " numformat "o\n", info.bootcode_size);
printf("Bootcode type: %s\n", info.bootcode_version.type);
printf("Bootcode offset: " addrformat "\n", info.bootcode_offset);
printf("Bootcode size: " numformat "o\n", info.bootcode_size);
}
/* - OS - */
printf("OS version : %02u.%02u.%02u\n",
printf("OS version: %02u.%02u.%02u\n",
info.os_version.major, info.os_version.minor, info.os_version.rev);
printf("OS type : \"%s\"\n", info.os_version.type);
printf("OS offset : " addrformat "\n", info.os_offset);
printf("OS size : " numformat "o\n", info.os_size);
printf("OS type: %s\n", info.os_version.type);
printf("OS offset: " addrformat "\n", info.os_offset);
printf("OS size: " numformat "o\n", info.os_size);
/* - Miscallenous info - */
printf("Protocol version : %01u.%02u\n",
printf("Protocol version: %01u.%02u\n",
info.protocol_version.major, info.protocol_version.minor);
printf("Product ID : \"%s\"\n", info.product_id);
printf("Username : \"%s\"\n", info.username);
printf("Hardware ID : \"%s\"\n", info.hwid);
printf("CPU ID : \"%s\"\n", info.cpuid);
printf("Product ID: %s\n", info.product_id);
printf("Username: %s\n", info.username);
printf("Hardware ID: %s\n", info.hwid);
printf("CPU ID (probably out of date): %s\n", info.cpuid);
return (0);
}