diff options
Diffstat (limited to 'firmware/test/fat')
-rw-r--r-- | firmware/test/fat/debug.c | 24 |
1 files changed, 5 insertions, 19 deletions
diff --git a/firmware/test/fat/debug.c b/firmware/test/fat/debug.c index 046a67e06c..c24314fc22 100644 --- a/firmware/test/fat/debug.c +++ b/firmware/test/fat/debug.c | |||
@@ -20,11 +20,11 @@ void dbg_dump_buffer(unsigned char *buf) | |||
20 | unsigned char c; | 20 | unsigned char c; |
21 | unsigned char ascii[33]; | 21 | unsigned char ascii[33]; |
22 | 22 | ||
23 | for(i = 0;i < 512/32;i++) | 23 | for(i = 0;i < 512/16;i++) |
24 | { | 24 | { |
25 | for(j = 0;j < 32;j++) | 25 | for(j = 0;j < 16;j++) |
26 | { | 26 | { |
27 | c = buf[i*32+j]; | 27 | c = buf[i*16+j]; |
28 | 28 | ||
29 | printf("%02x ", c); | 29 | printf("%02x ", c); |
30 | if(c < 32 || c > 127) | 30 | if(c < 32 || c > 127) |
@@ -70,21 +70,7 @@ void dbg_print_bpb(struct bpb *bpb) | |||
70 | printf("bpb_fatsz32 = %u\n", bpb->bpb_fatsz32); | 70 | printf("bpb_fatsz32 = %u\n", bpb->bpb_fatsz32); |
71 | printf("last_word = %04x\n", bpb->last_word); | 71 | printf("last_word = %04x\n", bpb->last_word); |
72 | 72 | ||
73 | switch(bpb->fat_type) | 73 | printf("fat_type = FAT32\n"); |
74 | { | ||
75 | case FATTYPE_FAT12: | ||
76 | printf("fat_type = FAT12\n"); | ||
77 | break; | ||
78 | case FATTYPE_FAT16: | ||
79 | printf("fat_type = FAT16\n"); | ||
80 | break; | ||
81 | case FATTYPE_FAT32: | ||
82 | printf("fat_type = FAT32\n"); | ||
83 | break; | ||
84 | default: | ||
85 | printf("fat_type = UNKNOWN (%d)\n", bpb->fat_type); | ||
86 | break; | ||
87 | } | ||
88 | } | 74 | } |
89 | 75 | ||
90 | void dbg_dir(struct bpb *bpb, int currdir) | 76 | void dbg_dir(struct bpb *bpb, int currdir) |
@@ -105,7 +91,7 @@ void dbg_dir(struct bpb *bpb, int currdir) | |||
105 | } | 91 | } |
106 | } | 92 | } |
107 | 93 | ||
108 | extern char current_directory[]; | 94 | char current_directory[256] = "\\"; |
109 | int last_secnum = 0; | 95 | int last_secnum = 0; |
110 | 96 | ||
111 | void dbg_prompt(void) | 97 | void dbg_prompt(void) |