From b05dcb58fe04c6274fc942fa93efe77072395951 Mon Sep 17 00:00:00 2001 From: wdenk Date: Fri, 4 Mar 2005 11:27:31 +0000 Subject: * Fix get_partition_info() parameter error in all other calls (common/cmd_ide.c, common/cmd_reiser.c, common/cmd_scsi.c). * Enable USB and IDE support for INKA4x0 board * Patch by Andrew Dyer, 28 February 2005: fix ext2load passing an incorrect pointer to get_partition_info() resulting in load failure for devices other than 0 --- fs/ext2/dev.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fs/ext2/dev.c') diff --git a/fs/ext2/dev.c b/fs/ext2/dev.c index 35a576daa8..1469e982b7 100644 --- a/fs/ext2/dev.c +++ b/fs/ext2/dev.c @@ -33,7 +33,6 @@ static block_dev_desc_t *ext2fs_block_dev_desc; static disk_partition_t part_info; -#undef DEBUG int ext2fs_set_blk_dev (block_dev_desc_t * rbdd, int part) { ext2fs_block_dev_desc = rbdd; @@ -74,9 +73,7 @@ int ext2fs_devread (int sector, int byte_offset, int byte_len, char *buf) { sector += byte_offset >> SECTOR_BITS; byte_offset &= SECTOR_SIZE - 1; -#if defined(DEBUG) - printf (" <%d, %d, %d>\n", sector, byte_offset, byte_len); -#endif + debug (" <%d, %d, %d>\n", sector, byte_offset, byte_len); if (ext2fs_block_dev_desc == NULL) { printf ("** Invalid Block Device Descriptor (NULL)\n"); -- cgit v1.2.1