diff options
author | Daniel Stenberg <daniel@haxx.se> | 2005-12-06 13:44:01 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2005-12-06 13:44:01 +0000 |
commit | 637ab47de6dc8c75aee5697366d5e783b492c645 (patch) | |
tree | ca02429f0de6236fea3710f10d8a5f60ac848940 /tools/scramble.c | |
parent | b0fee17d6e1a463dcd84568e5997663b69488998 (diff) | |
download | rockbox-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
Diffstat (limited to 'tools/scramble.c')
-rw-r--r-- | tools/scramble.c | 5 |
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) | |||
195 | 195 | ||
196 | if ((method == scramble) && | 196 | if ((method == scramble) && |
197 | ((length + headerlen) >= size_limit[model_id])) { | 197 | ((length + headerlen) >= size_limit[model_id])) { |
198 | printf("error: max firmware size is %dKB!\n", | 198 | printf("error: firmware image is %d bytes while max size is %d!\n", |
199 | size_limit[model_id]/1024); | 199 | length + headerlen, |
200 | size_limit[model_id]); | ||
200 | fclose(file); | 201 | fclose(file); |
201 | return -1; | 202 | return -1; |
202 | } | 203 | } |