From a0009907de7a0107d49040d8a180f140e2eff299 Mon Sep 17 00:00:00 2001 From: Amaury Pouly Date: Wed, 25 Apr 2012 13:35:55 +0200 Subject: [PATCH] imxtools: fix missing '\n' Change-Id: I93630f5c303064deb5880421202425046aa3074f --- utils/imxtools/sb.c | 7 ++++--- 1 file 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, if(memcmp(sb_header->signature, "STMP", 4) != 0) fatal(SB_FORMAT_ERROR, "Bad signature\n"); if(sb_header->image_size * BLOCK_SIZE > filesize) - fatal(SB_FORMAT_ERROR, "File too small"); + fatal(SB_FORMAT_ERROR, "File too small (should be at least %d bytes)\n", + sb_header->image_size * BLOCK_SIZE); if(sb_header->header_size * BLOCK_SIZE != sizeof(struct sb_header_t)) - fatal(SB_FORMAT_ERROR, "Bad header size"); + fatal(SB_FORMAT_ERROR, "Bad header size\n"); if(sb_header->sec_hdr_size * BLOCK_SIZE != sizeof(struct sb_section_header_t)) - fatal(SB_FORMAT_ERROR, "Bad section header size"); + fatal(SB_FORMAT_ERROR, "Bad section header size\n"); if(filesize > sb_header->image_size * BLOCK_SIZE) {