diff options
Diffstat (limited to 'firmware/test/fat/ata-sim.c')
-rw-r--r-- | firmware/test/fat/ata-sim.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/firmware/test/fat/ata-sim.c b/firmware/test/fat/ata-sim.c index d8ed079759..98fd5adc28 100644 --- a/firmware/test/fat/ata-sim.c +++ b/firmware/test/fat/ata-sim.c | |||
@@ -9,7 +9,7 @@ static FILE* file; | |||
9 | 9 | ||
10 | void panicf( const char *fmt, ... ); | 10 | void panicf( const char *fmt, ... ); |
11 | 11 | ||
12 | int ata_read_sectors(unsigned long start, int count, void* buf) | 12 | int storage_read_sectors(unsigned long start, int count, void* buf) |
13 | { | 13 | { |
14 | if ( count > 1 ) | 14 | if ( count > 1 ) |
15 | DEBUGF("[Reading %d blocks: 0x%lx to 0x%lx]\n", | 15 | 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) | |||
22 | return -1; | 22 | return -1; |
23 | } | 23 | } |
24 | if(!fread(buf,BLOCK_SIZE,count,file)) { | 24 | if(!fread(buf,BLOCK_SIZE,count,file)) { |
25 | DEBUGF("ata_write_sectors(0x%x, 0x%x, 0x%x)\n", start, count, buf ); | 25 | DEBUGF("ata_write_sectors(0x%lx, 0x%x, %p)\n", start, count, buf ); |
26 | perror("fread"); | 26 | perror("fread"); |
27 | panicf("Disk error\n"); | 27 | panicf("Disk error\n"); |
28 | } | 28 | } |
29 | return 0; | 29 | return 0; |
30 | } | 30 | } |
31 | 31 | ||
32 | int ata_write_sectors(unsigned long start, int count, void* buf) | 32 | int storage_write_sectors(unsigned long start, int count, void* buf) |
33 | { | 33 | { |
34 | if ( count > 1 ) | 34 | if ( count > 1 ) |
35 | DEBUGF("[Writing %d blocks: 0x%lx to 0x%lx]\n", | 35 | 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) | |||
45 | return -1; | 45 | return -1; |
46 | } | 46 | } |
47 | if(!fwrite(buf,BLOCK_SIZE,count,file)) { | 47 | if(!fwrite(buf,BLOCK_SIZE,count,file)) { |
48 | DEBUGF("ata_write_sectors(0x%x, 0x%x, 0x%x)\n", start, count, buf ); | 48 | DEBUGF("ata_write_sectors(0x%lx, 0x%x, %p)\n", start, count, buf ); |
49 | perror("fwrite"); | 49 | perror("fwrite"); |
50 | panicf("Disk error\n"); | 50 | panicf("Disk error\n"); |
51 | } | 51 | } |