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/ata.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/ata.c')
-rw-r--r-- | src/ata.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -37,7 +37,7 @@ await_ide(u8 mask, u8 flags, u16 base, u16 timeout) if ((status & mask) == flags) return status; if (check_time(end)) { - dprintf(1, "IDE time out\n"); + warn_timeout(); return -1; } yield(); @@ -109,7 +109,7 @@ ata_reset(struct drive_s *drive_g) break; // Change drive request failed to take effect - retry. if (check_time(end)) { - dprintf(1, "ata_reset slave time out\n"); + warn_timeout(); goto done; } } @@ -458,7 +458,7 @@ ata_dma_transfer(struct disk_op_s *op) // Transfer in progress if (check_time(end)) { // Timeout. - dprintf(1, "IDE DMA timeout\n"); + warn_timeout(); break; } yield(); @@ -883,7 +883,7 @@ powerup_await_non_bsy(u16 base) return orstatus; } if (check_time(SpinupEnd)) { - dprintf(1, "powerup IDE time out\n"); + warn_timeout(); return -1; } yield(); |