projects
/
coreboot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
857a778
)
Trivial: Improve error reporting of sconfig slightly by reporting the line number.
author
Patrick Georgi
<patrick.georgi@coresystems.de>
Thu, 15 Jul 2010 15:59:07 +0000
(15:59 +0000)
committer
Patrick Georgi
<patrick.georgi@coresystems.de>
Thu, 15 Jul 2010 15:59:07 +0000
(15:59 +0000)
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
util/sconfig/main.c
patch
|
blob
|
history
diff --git
a/util/sconfig/main.c
b/util/sconfig/main.c
index 4b6258fbf9604a77d8d2f8e093069e970a65d080..062eedd2e02a7b8e53d84d8b4b738e60d4960a74 100755
(executable)
--- 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) {