aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhpa <hpa>2005-01-05 00:11:13 +0000
committerhpa <hpa>2005-01-05 00:11:13 +0000
commit6400f61025d3f60019a593200bb723abc0dd86cf (patch)
tree0d59b9b6b13f56b531bbf2b9bba789e760080683
parent3c6c76e2b357bca40860878a6d10679bf9f3e329 (diff)
downloadsyslinux.git-6400f61025d3f60019a593200bb723abc0dd86cf.tar.gz
syslinux.git-6400f61025d3f60019a593200bb723abc0dd86cf.tar.xz
syslinux.git-6400f61025d3f60019a593200bb723abc0dd86cf.zip
Spend little over half a kilobyte printing an error message at the end.
-rw-r--r--com32/modules/ethersel.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/com32/modules/ethersel.c b/com32/modules/ethersel.c
index 51ad2c69..2a2bf186 100644
--- a/com32/modules/ethersel.c
+++ b/com32/modules/ethersel.c
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <console.h>
#include <sys/pci.h>
#include <com32.h>
@@ -242,6 +243,8 @@ int main(int argc, char *argv[])
{
struct match *list, *match;
+ openconsole(&dev_null_r, &dev_stdcon_w);
+
list = parse_config(argc < 2 ? NULL : argv[1]);
match = pciscan(list);
@@ -249,8 +252,8 @@ int main(int argc, char *argv[])
if ( match )
execute(match->filename);
- fputs("Error: no recognized network card found\n", stderr);
-
+ /* On error, return to the command line */
+ fputs("Error: no recognized network card found!\n", stderr);
return 1;
}