From 637ab47de6dc8c75aee5697366d5e783b492c645 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 6 Dec 2005 13:44:01 +0000 Subject: output the exact byte sizes of the image and the maximum allowed git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8170 a1c6a512-1295-4272-9138-f99709370657 --- tools/scramble.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tools') diff --git a/tools/scramble.c b/tools/scramble.c index 9d0a8d415a..7d936cf42f 100644 --- a/tools/scramble.c +++ b/tools/scramble.c @@ -195,8 +195,9 @@ int main (int argc, char** argv) if ((method == scramble) && ((length + headerlen) >= size_limit[model_id])) { - printf("error: max firmware size is %dKB!\n", - size_limit[model_id]/1024); + printf("error: firmware image is %d bytes while max size is %d!\n", + length + headerlen, + size_limit[model_id]); fclose(file); return -1; } -- cgit v1.2.3