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
This commit is contained in:
Björn Stenberg 2002-04-27 01:17:49 +00:00
parent 1dff4b65f7
commit ccd3d0a6eb

View file

@ -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)