cake
/
p7utils
Archived
1
0
Fork 0

Corrected dumping.

This commit is contained in:
Thomas Touhey 2017-01-14 13:23:47 +01:00
parent 3e32222b6a
commit 61809b0220
2 changed files with 8 additions and 4 deletions

4
configure vendored
View File

@ -137,6 +137,10 @@ done
#******************************************************************************#
# Create Makefile configuration #
#******************************************************************************#
# Clean before.
make mrproper MAKE_FULL_LOG=y 1>/dev/null 2>/dev/null
# Do it!
exec 3>&1 1>Makefile.cfg
cat <<EOF
#!/usr/bin/make -f

View File

@ -46,8 +46,8 @@ int dump(p7_handle_t *handle)
}
/* ROM and RAM */
printf("ROM capacity: " numformat "o\n", info->flash_rom_capacity);
printf("RAM capacity: " numformat "o\n", info->ram_capacity);
printf("ROM capacity: " numformat "KiB\n", info->flash_rom_capacity / 1024);
printf("RAM capacity: " numformat "KiB\n", info->ram_capacity / 1024);
/* Bootcode */
if (!info->bootcode_wiped) {
@ -56,7 +56,7 @@ int dump(p7_handle_t *handle)
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 size: " numformat "KiB\n", info->bootcode_size / 1024);
}
/* OS */
@ -65,7 +65,7 @@ int dump(p7_handle_t *handle)
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 size: " numformat "KiB\n", info->os_size / 1024);
}
/* Miscallenous information */