diff options
Diffstat (limited to 'firmware/test/fat/main.c')
-rw-r--r-- | firmware/test/fat/main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/firmware/test/fat/main.c b/firmware/test/fat/main.c index a9220d15b7..756f326bb3 100644 --- a/firmware/test/fat/main.c +++ b/firmware/test/fat/main.c | |||
@@ -9,6 +9,7 @@ | |||
9 | #include "dir.h" | 9 | #include "dir.h" |
10 | #include "file.h" | 10 | #include "file.h" |
11 | #include "ata.h" | 11 | #include "ata.h" |
12 | #include "storage.h" | ||
12 | 13 | ||
13 | void dbg_dump_sector(int sec); | 14 | void dbg_dump_sector(int sec); |
14 | void dbg_dump_buffer(unsigned char *buf, int len, int offset); | 15 | void dbg_dump_buffer(unsigned char *buf, int len, int offset); |
@@ -432,7 +433,7 @@ void dbg_tail(char* name) | |||
432 | if( rc > 0 ) | 433 | if( rc > 0 ) |
433 | { | 434 | { |
434 | buf[rc]=0; | 435 | buf[rc]=0; |
435 | printf("%d:\n%s\n", strlen(buf), buf); | 436 | printf("%d:\n%s\n", (int)strlen(buf), buf); |
436 | } | 437 | } |
437 | else if ( rc == 0 ) { | 438 | else if ( rc == 0 ) { |
438 | DEBUGF("EOF\n"); | 439 | DEBUGF("EOF\n"); |
@@ -463,7 +464,7 @@ int dbg_head(char* name) | |||
463 | if( rc > 0 ) | 464 | if( rc > 0 ) |
464 | { | 465 | { |
465 | buf[rc]=0; | 466 | buf[rc]=0; |
466 | printf("%d:\n%s\n", strlen(buf), buf); | 467 | printf("%d:\n%s\n", (int)strlen(buf), buf); |
467 | } | 468 | } |
468 | else if ( rc == 0 ) { | 469 | else if ( rc == 0 ) { |
469 | DEBUGF("EOF\n"); | 470 | DEBUGF("EOF\n"); |