summaryrefslogtreecommitdiff
path: root/firmware/test
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-04-27 01:17:49 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-04-27 01:17:49 +0000
commitccd3d0a6ebe8e5193b1f4c1f71941bd064ad9169 (patch)
treec1f3a8cbd75dc65d2b80aa763d0974ef35cd7d18 /firmware/test
parent1dff4b65f725c2174c65698e498b1d58d61e3968 (diff)
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
Diffstat (limited to 'firmware/test')
-rw-r--r--firmware/test/fat/debug.c24
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)
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)