summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xutil/sconfig/main.c4
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) {