diff options
author | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-07-15 15:59:07 +0000 |
---|---|---|
committer | Patrick Georgi <patrick.georgi@coresystems.de> | 2010-07-15 15:59:07 +0000 |
commit | 7fc9e291d7581845461efbdd74b56a8e0360f1e0 (patch) | |
tree | e0928e40b71cb9a16d0f4a8af7e90f8788e90925 | |
parent | 857a7784497e887f7881e635dec31e3d53837d60 (diff) |
Trivial: Improve error reporting of sconfig slightly by reporting the line number.
Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de>
Acked-by: Patrick Georgi <patrick.georgi@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5665 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rwxr-xr-x | util/sconfig/main.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c index 4b6258fbf9..062eedd2e0 100755 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -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 @@ int yywrap(void) { void yyerror (char const *str) { - fprintf (stderr, "%s\n", str); + fprintf (stderr, "line %d: %s\n", linenum, str); } void postprocess_devtree(void) { |