From 350c9cce9e559a5609f31fd7229dffbd69d85ff2 Mon Sep 17 00:00:00 2001 From: David Gibson Date: Thu, 12 Nov 2009 11:14:04 +1100 Subject: [PATCH] Use yylloc instead of yyloc yylloc is the correct way to get token positioning information. yyloc is a bison internal variable that only works by accident. Signed-off-by: David Gibson --- dtc-parser.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dtc-parser.y b/dtc-parser.y index 4b69c7a..31c14d7 100644 --- a/dtc-parser.y +++ b/dtc-parser.y @@ -175,7 +175,7 @@ propdata: if ($6 != 0) if (fseek(file->file, $6, SEEK_SET) != 0) - srcpos_error(&yyloc, + srcpos_error(&yylloc, "Couldn't seek to offset %llu in \"%s\": %s", (unsigned long long)$6, $4.val,