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
This commit is contained in:
parent
857a778449
commit
7fc9e291d7
|
@ -21,6 +21,8 @@
|
||||||
#include "sconfig.h"
|
#include "sconfig.h"
|
||||||
#include "sconfig.tab.h"
|
#include "sconfig.tab.h"
|
||||||
|
|
||||||
|
extern int linenum;
|
||||||
|
|
||||||
struct device *head, *lastdev;
|
struct device *head, *lastdev;
|
||||||
|
|
||||||
struct header headers;
|
struct header headers;
|
||||||
|
@ -87,7 +89,7 @@ int yywrap(void) {
|
||||||
|
|
||||||
void yyerror (char const *str)
|
void yyerror (char const *str)
|
||||||
{
|
{
|
||||||
fprintf (stderr, "%s\n", str);
|
fprintf (stderr, "line %d: %s\n", linenum, str);
|
||||||
}
|
}
|
||||||
|
|
||||||
void postprocess_devtree(void) {
|
void postprocess_devtree(void) {
|
||||||
|
|
Loading…
Reference in New Issue