summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2005-12-06 13:44:01 +0000
committerDaniel Stenberg <daniel@haxx.se>2005-12-06 13:44:01 +0000
commit637ab47de6dc8c75aee5697366d5e783b492c645 (patch)
treeca02429f0de6236fea3710f10d8a5f60ac848940
parentb0fee17d6e1a463dcd84568e5997663b69488998 (diff)
downloadrockbox-637ab47de6dc8c75aee5697366d5e783b492c645.tar.gz
rockbox-637ab47de6dc8c75aee5697366d5e783b492c645.zip
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
-rw-r--r--tools/scramble.c5
1 files changed, 3 insertions, 2 deletions
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;
}