summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2012-04-25 13:35:55 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2012-04-25 13:36:38 +0200
commita0009907de7a0107d49040d8a180f140e2eff299 (patch)
treec979110c94eae3b73a431eeda8dce73dbc20a883
parentb9f9d0da51a49d20530777b6b1a4c7dffa26538e (diff)
downloadrockbox-a0009907de7a0107d49040d8a180f140e2eff299.tar.gz
rockbox-a0009907de7a0107d49040d8a180f140e2eff299.zip
imxtools: fix missing '\n'
Change-Id: I93630f5c303064deb5880421202425046aa3074f
-rw-r--r--utils/imxtools/sb.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/utils/imxtools/sb.c b/utils/imxtools/sb.c
index b166a5f202..8e4b98b1a9 100644
--- a/utils/imxtools/sb.c
+++ b/utils/imxtools/sb.c
@@ -671,11 +671,12 @@ struct sb_file_t *sb_read_file(const char *filename, bool raw_mode, void *u,
671 if(memcmp(sb_header->signature, "STMP", 4) != 0) 671 if(memcmp(sb_header->signature, "STMP", 4) != 0)
672 fatal(SB_FORMAT_ERROR, "Bad signature\n"); 672 fatal(SB_FORMAT_ERROR, "Bad signature\n");
673 if(sb_header->image_size * BLOCK_SIZE > filesize) 673 if(sb_header->image_size * BLOCK_SIZE > filesize)
674 fatal(SB_FORMAT_ERROR, "File too small"); 674 fatal(SB_FORMAT_ERROR, "File too small (should be at least %d bytes)\n",
675 sb_header->image_size * BLOCK_SIZE);
675 if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t)) 676 if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t))
676 fatal(SB_FORMAT_ERROR, "Bad header size"); 677 fatal(SB_FORMAT_ERROR, "Bad header size\n");
677 if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t)) 678 if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t))
678 fatal(SB_FORMAT_ERROR, "Bad section header size"); 679 fatal(SB_FORMAT_ERROR, "Bad section header size\n");
679 680
680 if(filesize > sb_header->image_size * BLOCK_SIZE) 681 if(filesize > sb_header->image_size * BLOCK_SIZE)
681 { 682 {