[coreboot] [commit] r5665 - trunk/util/sconfig

repository service svn at coreboot.org
Thu Jul 15 17:59:07 CEST 2010


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 <patrick.georgi at coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi at coresystems.de>

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) {




More information about the coreboot mailing list