summaryrefslogtreecommitdiffstats
path: root/src/hci
diff options
context:
space:
mode:
authorMichael Brown2007-08-02 15:51:03 +0200
committerMichael Brown2007-08-02 15:51:03 +0200
commit9fd6a0418f38461d6d87f2c88785028d65fd6a1c (patch)
treebfd75ca6c34652464d2e9b02fe4cc06b210e444c /src/hci
parentUse otherwise-useless byte in DHCP feature option as a version number (diff)
downloadipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.tar.gz
ipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.tar.xz
ipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.zip
Allowed zero-cost enforced ordering of features in startup banner
list. Added FEATURE() macros to most relevant (non-driver) files.
Diffstat (limited to 'src/hci')
-rw-r--r--src/hci/shell_banner.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/hci/shell_banner.c b/src/hci/shell_banner.c
index bb8166db..d313d4dd 100644
--- a/src/hci/shell_banner.c
+++ b/src/hci/shell_banner.c
@@ -34,8 +34,8 @@
#define BOLD "\033[1m"
#define CYAN "\033[36m"
-static char * features[0] __table_start ( char *, features );
-static char * features_end[0] __table_end ( char *, features );
+static struct feature features[0] __table_start ( struct feature, features );
+static struct feature features_end[0] __table_end ( struct feature, features );
/**
* Print shell banner and prompt for shell entry
@@ -44,7 +44,7 @@ static char * features_end[0] __table_end ( char *, features );
*/
int shell_banner ( void ) {
unsigned long timeout = ( currticks() + BANNER_TIMEOUT );
- char **feature;
+ struct feature *feature;
int key;
int enter_shell = 0;
@@ -54,7 +54,7 @@ int shell_banner ( void ) {
CYAN "http://etherboot.org" NORMAL "\n"
"Features:" );
for ( feature = features ; feature < features_end ; feature++ ) {
- printf ( " %s", *feature );
+ printf ( " %s", feature->name );
}
printf ( "\nPress Ctrl-B for the gPXE command line..." );