From 3a5eaa8fa98f077b17e352e3afaa03d995773d5c Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Mon, 28 Feb 2011 10:48:58 +0000 Subject: Made the fat test code compile again. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29456 a1c6a512-1295-4272-9138-f99709370657 --- firmware/test/fat/ata-sim.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'firmware/test/fat/ata-sim.c') 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; 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"); } -- cgit v1.2.3