diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-02-14 13:07:54 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-02-14 13:07:54 -0500 |
commit | cfdc13f37f3fa3c7d8c11848f58cfc18a98e37a4 (patch) | |
tree | 9d3ac5adba05c12b6ad3af1d9e2e6fbf57fe6ded /src/disk.c | |
parent | 8bbc79c435c896ad0107725fa77c7aeb860af625 (diff) | |
download | seabios-hppa-cfdc13f37f3fa3c7d8c11848f58cfc18a98e37a4.zip seabios-hppa-cfdc13f37f3fa3c7d8c11848f58cfc18a98e37a4.tar.gz seabios-hppa-cfdc13f37f3fa3c7d8c11848f58cfc18a98e37a4.tar.bz2 |
Introduce standard warnings for allocation failures and timeouts.
There is no need for custom warnings for many common failures.
Introduce a common warning which is consistent and more visible.
Diffstat (limited to 'src/disk.c')
-rw-r--r-- | src/disk.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -88,8 +88,7 @@ basic_access(struct bregs *regs, struct drive_s *drive_g, u16 command) u16 head = regs->dh; if (count > 128 || count == 0 || sector == 0) { - dprintf(1, "int13_harddisk: function %02x, parameter out of range!\n" - , regs->ah); + warn_invalid(regs); disk_ret(regs, DISK_RET_EPARAM); return; } @@ -100,9 +99,7 @@ basic_access(struct bregs *regs, struct drive_s *drive_g, u16 command) // sanity check on cyl heads, sec if (cylinder >= nlc || head >= nlh || sector > nlspt) { - dprintf(1, "int13_harddisk: function %02x, parameters out of" - " range %04x/%04x/%04x!\n" - , regs->ah, cylinder, head, sector); + warn_invalid(regs); disk_ret(regs, DISK_RET_EPARAM); return; } @@ -130,8 +127,7 @@ extended_access(struct bregs *regs, struct drive_s *drive_g, u16 command) dop.command = command; dop.drive_g = drive_g; if (dop.lba >= GET_GLOBAL(drive_g->sectors)) { - dprintf(1, "int13_harddisk: function %02x. LBA out of range\n" - , regs->ah); + warn_invalid(regs); disk_ret(regs, DISK_RET_EPARAM); return; } |