aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLiu Aleaxander <Aleaxander@gmail.com>2009-06-23 12:45:55 +0800
committerLiu Aleaxander <Aleaxander@gmail.com>2009-06-23 12:45:55 +0800
commit29b1fd4674bb4a09f20fb435df986dc513b730be (patch)
tree879fcb2eb144f368a300aad068c6003e8293c5ab
parentf6528168f826c8e1d8acf45f8b1443000314be58 (diff)
downloadsyslinux-extlinux.tar.gz
syslinux-extlinux.tar.xz
syslinux-extlinux.zip
Core:EXTLINUX: add more debug stuffextlinux
-rw-r--r--core/diskio.c4
-rw-r--r--core/ext2.c3
2 files changed, 7 insertions, 0 deletions
diff --git a/core/diskio.c b/core/diskio.c
index 8b33d8a7..c85d92ad 100644
--- a/core/diskio.c
+++ b/core/diskio.c
@@ -229,6 +229,10 @@ void dump_disk(struct disk *disk)
printf("offset: %d\n", disk->part_start);
printf("%s\n", disk->rdwr_sectors == edd_rdwr_sectors ? "EDD_RDWR_SECTORS" :
"CHS_RDWR_SECTORS");
+ printf("--------------------------------\n");
+ printf("disk->rdwr_sectors@: %p\n", disk->rdwr_sectors);
+ printf("edd_rdwr_sectors @: %p\n", edd_rdwr_sectors);
+ printf("chs_rdwr_sectors @: %p\n", chs_rdwr_sectors);
}
struct disk *disk_init(uint8_t devno, bool cdrom, sector_t part_start,
diff --git a/core/ext2.c b/core/ext2.c
index 0ddda8ee..8bfca6ac 100644
--- a/core/ext2.c
+++ b/core/ext2.c
@@ -751,6 +751,9 @@ void ext2_load_config(com32sys_t *regs)
*/
int ext2_fs_init(struct fs_info *fs)
{
+#if 1
+ printf("super block@: %p\n", &sb);
+#endif
/* read the super block */
fs->fs_dev->disk->rdwr_sectors(fs->fs_dev->disk, (void *)&sb, 2, 2, 0);