Author: oxygene Date: Thu Jul 15 17:59:07 2010 New Revision: 5665 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5665
Log: Trivial: Improve error reporting of sconfig slightly by reporting the line number. Signed-off-by: Patrick Georgi <[email protected]> Acked-by: Patrick Georgi <[email protected]> Modified: trunk/util/sconfig/main.c Modified: trunk/util/sconfig/main.c ============================================================================== --- trunk/util/sconfig/main.c Fri Jul 9 20:52:17 2010 (r5664) +++ trunk/util/sconfig/main.c Thu Jul 15 17:59:07 2010 (r5665) @@ -21,6 +21,8 @@ #include "sconfig.h" #include "sconfig.tab.h" +extern int linenum; + struct device *head, *lastdev; struct header headers; @@ -87,7 +89,7 @@ void yyerror (char const *str) { - fprintf (stderr, "%s\n", str); + fprintf (stderr, "line %d: %s\n", linenum, str); } void postprocess_devtree(void) { -- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

