mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 23:22:34 -05:00
Made the fat test code compile again.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29456 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
d8f6c75ab9
commit
3a5eaa8fa9
5 changed files with 38 additions and 41 deletions
|
|
@ -9,7 +9,7 @@ static FILE* file;
|
|||
|
||||
void panicf( const char *fmt, ... );
|
||||
|
||||
int ata_read_sectors(unsigned long start, int count, void* buf)
|
||||
int storage_read_sectors(unsigned long start, int count, void* buf)
|
||||
{
|
||||
if ( count > 1 )
|
||||
DEBUGF("[Reading %d blocks: 0x%lx to 0x%lx]\n",
|
||||
|
|
@ -22,14 +22,14 @@ int ata_read_sectors(unsigned long start, int count, void* buf)
|
|||
return -1;
|
||||
}
|
||||
if(!fread(buf,BLOCK_SIZE,count,file)) {
|
||||
DEBUGF("ata_write_sectors(0x%x, 0x%x, 0x%x)\n", start, count, buf );
|
||||
DEBUGF("ata_write_sectors(0x%lx, 0x%x, %p)\n", start, count, buf );
|
||||
perror("fread");
|
||||
panicf("Disk error\n");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
int ata_write_sectors(unsigned long start, int count, void* buf)
|
||||
int storage_write_sectors(unsigned long start, int count, void* buf)
|
||||
{
|
||||
if ( count > 1 )
|
||||
DEBUGF("[Writing %d blocks: 0x%lx to 0x%lx]\n",
|
||||
|
|
@ -45,7 +45,7 @@ int ata_write_sectors(unsigned long start, int count, void* buf)
|
|||
return -1;
|
||||
}
|
||||
if(!fwrite(buf,BLOCK_SIZE,count,file)) {
|
||||
DEBUGF("ata_write_sectors(0x%x, 0x%x, 0x%x)\n", start, count, buf );
|
||||
DEBUGF("ata_write_sectors(0x%lx, 0x%x, %p)\n", start, count, buf );
|
||||
perror("fwrite");
|
||||
panicf("Disk error\n");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue