summaryrefslogtreecommitdiffstats
path: root/bootloader
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2007-03-19 11:20:22 +0000
committerBarry Wardell <rockbox@barrywardell.net>2007-03-19 11:20:22 +0000
commitca8f7bf3528b471a896a0a954e71493ee4369392 (patch)
tree6274ccb4ccff96a8ee660e0e8fa9eacb605f6c04 /bootloader
parent58038d86f19174258f22ace959cc35438d3e6616 (diff)
downloadrockbox-ca8f7bf3528b471a896a0a954e71493ee4369392.tar.gz
rockbox-ca8f7bf3528b471a896a0a954e71493ee4369392.tar.bz2
rockbox-ca8f7bf3528b471a896a0a954e71493ee4369392.zip
The model and type strings are only 4 characters long. Also remove the 20 at the start of the version string - it should never have been there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12839 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'bootloader')
-rw-r--r--bootloader/main-pp.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootloader/main-pp.c b/bootloader/main-pp.c
index e598a29fa0..e8a1667309 100644
--- a/bootloader/main-pp.c
+++ b/bootloader/main-pp.c
@@ -187,10 +187,10 @@ int load_mi4(unsigned char* buf, char* firmware, unsigned int buffer_size)
printf("CRC32: %x", mi4header.crc32);
/* Rockbox model id */
- printf("Model id: %4s", mi4header.model);
+ printf("Model id: %.4s", mi4header.model);
/* Read binary type (RBOS, RBBL) */
- printf("Binary type: %4s", mi4header.type);
+ printf("Binary type: %.4s", mi4header.type);
/* Load firmware */
lseek(fd, MI4_HEADER_SIZE, SEEK_SET);
@@ -245,10 +245,10 @@ int load_mi4_part(unsigned char* buf, struct partinfo* pinfo, unsigned int buffe
printf("CRC32: %x", mi4header.crc32);
/* Rockbox model id */
- printf("Model id: %4s", mi4header.model);
+ printf("Model id: %.4s", mi4header.model);
/* Read binary type (RBOS, RBBL) */
- printf("Binary type: %4s", mi4header.type);
+ printf("Binary type: %.4s", mi4header.type);
/* Load firmware */
ata_read_sectors(pinfo->start + PPMI_SECTOR_OFFSET + PPMI_SECTORS
@@ -298,7 +298,7 @@ void* main(void)
lcd_setfont(FONT_SYSFIXED);
printf("Rockbox boot loader");
- printf("Version: 20%s", version);
+ printf("Version: %s", version);
printf(MODEL_NAME);
i=ata_init();