aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Herbszt <herbszt@gmx.de>2008-09-09 22:48:42 +0200
committerH. Peter Anvin <hpa@zytor.com>2008-09-09 15:32:36 -0700
commit021bcdcdb706916cc063bf43f0b1206e13133014 (patch)
treeed960dd53ff9ea225cfc0e274cc4226f79ae34d8
parent5c24b8307f49da675684485e1e24ac5689017e1a (diff)
downloadsyslinux-elf-021bcdcdb706916cc063bf43f0b1206e13133014.tar.gz
syslinux-elf-021bcdcdb706916cc063bf43f0b1206e13133014.tar.xz
syslinux-elf-021bcdcdb706916cc063bf43f0b1206e13133014.zip
parsecmd: show keyword in err_noparm message
Show which keyword is missing the parameter. - Sebastian
-rw-r--r--core/parsecmd.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/core/parsecmd.inc b/core/parsecmd.inc
index 9ffc10d2..edca0b7d 100644
--- a/core/parsecmd.inc
+++ b/core/parsecmd.inc
@@ -82,9 +82,11 @@ getcommand:
; No parameter
.noparm:
mov si,err_noparm
- mov al,10 ; Already at EOL
-.error:
call writestr
+ mov si,trackbuf
+ call writestr
+ call crlf
+ mov al,10 ; Already at EOL
jmp short .skipline
.found_keywd: lodsw ; Load argument into ax
@@ -103,7 +105,7 @@ getcommand:
section .data
err_badcfg db 'Unknown keyword in configuration file: ',0
-err_noparm db 'Missing parameter in configuration file.', CR, LF, 0
+err_noparm db 'Missing parameter in configuration file. Keyword: ',0
section .uibss
alignb 4