From ccd3d0a6ebe8e5193b1f4c1f71941bd064ad9169 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Sat, 27 Apr 2002 01:17:49 +0000 Subject: Kept only fat32 code. Changed to 16-byte/row display. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@255 a1c6a512-1295-4272-9138-f99709370657 --- firmware/test/fat/debug.c | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) (limited to 'firmware/test') 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) unsigned char c; unsigned char ascii[33]; - for(i = 0;i < 512/32;i++) + for(i = 0;i < 512/16;i++) { - for(j = 0;j < 32;j++) + for(j = 0;j < 16;j++) { - c = buf[i*32+j]; + c = buf[i*16+j]; printf("%02x ", c); if(c < 32 || c > 127) @@ -70,21 +70,7 @@ void dbg_print_bpb(struct bpb *bpb) printf("bpb_fatsz32 = %u\n", bpb->bpb_fatsz32); printf("last_word = %04x\n", bpb->last_word); - switch(bpb->fat_type) - { - case FATTYPE_FAT12: - printf("fat_type = FAT12\n"); - break; - case FATTYPE_FAT16: - printf("fat_type = FAT16\n"); - break; - case FATTYPE_FAT32: - printf("fat_type = FAT32\n"); - break; - default: - printf("fat_type = UNKNOWN (%d)\n", bpb->fat_type); - break; - } + printf("fat_type = FAT32\n"); } void dbg_dir(struct bpb *bpb, int currdir) @@ -105,7 +91,7 @@ void dbg_dir(struct bpb *bpb, int currdir) } } -extern char current_directory[]; +char current_directory[256] = "\\"; int last_secnum = 0; void dbg_prompt(void) -- cgit v1.2.3