diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2008-06-28 12:15:57 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2008-06-28 12:15:57 -0400 |
commit | a05223c876ea62952a2e07910d6e6a4dacee3a2f (patch) | |
tree | 78835fa53e48320e5b0667b03ca9c19dfdade7c6 /src/floppy.c | |
parent | e10e6f849d328a47ca878b8d4428751f25508341 (diff) | |
download | seabios-hppa-a05223c876ea62952a2e07910d6e6a4dacee3a2f.zip seabios-hppa-a05223c876ea62952a2e07910d6e6a4dacee3a2f.tar.gz seabios-hppa-a05223c876ea62952a2e07910d6e6a4dacee3a2f.tar.bz2 |
Improve some debugging output.
Replace DEBUGF calls with dprintf calls.
Make ata calls consistently use 'int' return codes.
Make each error return code in ata.c use a unique negative number.
Diffstat (limited to 'src/floppy.c')
-rw-r--r-- | src/floppy.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/floppy.c b/src/floppy.c index efe9592..afb8778 100644 --- a/src/floppy.c +++ b/src/floppy.c @@ -13,9 +13,6 @@ #include "cmos.h" // inb_cmos #include "pic.h" // unmask_pic1 -#define DEBUGF1(fmt, args...) bprintf(0, fmt , ##args) -#define DEBUGF(fmt, args...) - #define BX_FLOPPY_ON_CNT 37 /* 2 seconds */ // New diskette parameter table adding 3 parameters from IBM @@ -553,7 +550,7 @@ floppy_1304(struct bregs *regs, u8 drive) static void floppy_1305(struct bregs *regs, u8 drive) { - DEBUGF("floppy f05\n"); + dprintf(3, "floppy f05\n"); if (check_drive(regs, drive)) return; @@ -598,7 +595,7 @@ floppy_1305(struct bregs *regs, u8 drive) static void floppy_1308(struct bregs *regs, u8 drive) { - DEBUGF("floppy f08\n"); + dprintf(3, "floppy f08\n"); u8 drive_type = inb_cmos(CMOS_FLOPPY_DRIVE_TYPE); u8 num_floppies = 0; @@ -690,7 +687,7 @@ floppy_1308(struct bregs *regs, u8 drive) static void floppy_1315(struct bregs *regs, u8 drive) { - DEBUGF("floppy f15\n"); + dprintf(6, "floppy f15\n"); if (drive > 1) { set_fail(regs); regs->ah = 0; // only 2 drives supported @@ -707,7 +704,6 @@ floppy_1315(struct bregs *regs, u8 drive) static void floppy_1316(struct bregs *regs, u8 drive) { - DEBUGF("floppy f16\n"); if (drive > 1) { floppy_ret(regs, DISK_RET_EPARAM); return; |