diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-08-02 14:51:03 +0100 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-08-02 14:51:03 +0100 |
commit | 9fd6a0418f38461d6d87f2c88785028d65fd6a1c (patch) | |
tree | bfd75ca6c34652464d2e9b02fe4cc06b210e444c /src/hci | |
parent | 67afe84292723e13da02308fc4cf08cf9ab5e0c0 (diff) | |
download | ipxe-9fd6a0418f38461d6d87f2c88785028d65fd6a1c.tar.gz |
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.c | 8 |
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..." ); |