Sebastian Herbszt
2008-Sep-09 20:48 UTC
[syslinux] [PATCH] parsecmd: show keyword in err_noparm message
Show which keyword is missing the parameter. - Sebastian Index: syslinux-3.72-pre5/core/parsecmd.inc ==================================================================--- syslinux-3.72-pre5.orig/core/parsecmd.inc 2008-06-23 17:11:47.000000000 +0200 +++ syslinux-3.72-pre5/core/parsecmd.inc 2008-09-09 22:11:35.000000000 +0200 @@ -82,9 +82,11 @@ ; 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 @@ 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