aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2010-12-29 21:41:19 -0500
committerKevin O'Connor <kevin@koconnor.net>2010-12-29 21:41:19 -0500
commitca2bc1c0cd65796589a55728fb0837e5e64e5a74 (patch)
treefa9d554ce1772ca302bc4af092ae279b50866ac3 /src/util.h
parentf13a18090d291f0c7cca6fab61e3ff563ab9400c (diff)
downloadseabios-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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index f5b9446..7102c27 100644
--- a/src/util.h
+++ b/src/util.h
@@ -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);