diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2010-12-29 21:41:19 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2010-12-29 21:41:19 -0500 |
commit | ca2bc1c0cd65796589a55728fb0837e5e64e5a74 (patch) | |
tree | fa9d554ce1772ca302bc4af092ae279b50866ac3 /src/util.h | |
parent | f13a18090d291f0c7cca6fab61e3ff563ab9400c (diff) | |
download | seabios-hppa-ca2bc1c0cd65796589a55728fb0837e5e64e5a74.zip seabios-hppa-ca2bc1c0cd65796589a55728fb0837e5e64e5a74.tar.gz seabios-hppa-ca2bc1c0cd65796589a55728fb0837e5e64e5a74.tar.bz2 |
Remove drive->desc field.
The description field is only available during the POST phase - it is
confusing to have it live in a structure available through all phases.
The description was only used by the boot menu code - pass each drive
description directly to the bootlist code.
Add a helper (znprintf) to automatically malloc_tmp the required
space.
Also, fixup ramdisk handling - it was using an incorrect floppy
priority.
Diffstat (limited to 'src/util.h')
-rw-r--r-- | src/util.h | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -237,6 +237,8 @@ void printf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); int snprintf(char *str, size_t size, const char *fmt, ...) __attribute__ ((format (printf, 3, 4))); +char * znprintf(size_t size, const char *fmt, ...) + __attribute__ ((format (printf, 2, 3))); void __dprintf(const char *fmt, ...) __attribute__ ((format (printf, 1, 2))); void __debug_enter(struct bregs *regs, const char *fname); |