summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-12-29 13:26:01 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-12-29 13:26:01 -0500
commitecbcf77b9e89d983207f8ed5f57ac727577a7575 (patch)
treea206f5a660da1a0645134b4aa380cd63a4e4bb47
parent551caa21eb8fa4f7cd2971e48999b60f3619b519 (diff)
Don't access drive_g->desc from boot_cdrom().
The drive description is allocated with malloc_tmp() and is thus only available during the POST phase - boot_cdrom() is called during the boot phase.
-rw-r--r--src/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot.c b/src/boot.c
index a93bb5f..8e33d53 100644
--- a/src/boot.c
+++ b/src/boot.c
@@ -431,7 +431,7 @@ boot_cdrom(struct ipl_entry_s *ie)
struct drive_s *drive_g = (void*)ie->vector;
int status = cdrom_boot(drive_g);
if (status) {
- printf("Boot failed: Could not read from CDROM %s (code %04x)\n", drive_g->desc, status);
+ printf("Boot failed: Could not read from CDROM (code %04x)\n", status);
return;
}