aboutsummaryrefslogtreecommitdiff
path: root/dtc.c
diff options
context:
space:
mode:
authorIan Campbell <ijc@hellion.org.uk>2017-02-03 08:29:39 +0000
committerDavid Gibson <david@gibson.dropbear.id.au>2017-02-23 20:11:20 +1100
commitacd1b534a5924e1fa2b8c941d1931d78ca327e18 (patch)
treeff9ae552fd94ae027a5af7c5316039aad7cc78a6 /dtc.c
parent120775eb1cf39f8dcecd695c3ff1cfef8aeb669d (diff)
downloaddtc-acd1b534a5924e1fa2b8c941d1931d78ca327e18.zip
dtc-acd1b534a5924e1fa2b8c941d1931d78ca327e18.tar.gz
dtc-acd1b534a5924e1fa2b8c941d1931d78ca327e18.tar.bz2
Print output filename as part of warning messages
For example: src/arm/at91-ariag25.dtb: Warning (unit_address_vs_reg): Node /memory has a reg or ranges property, but no unit name If output is to stdout then the prefix is "<stdout>: ". This helps to direct the developer to where to look when multiple files are being compiled in parallel. Signed-off-by: Ian Campbell <ijc@hellion.org.uk> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'dtc.c')
-rw-r--r--dtc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/dtc.c b/dtc.c
index a4edf4c..9c30c33 100644
--- a/dtc.c
+++ b/dtc.c
@@ -309,6 +309,8 @@ int main(int argc, char *argv[])
else
die("Unknown input format \"%s\"\n", inform);
+ dti->outname = outname;
+
if (depfile) {
fputc('\n', depfile);
fclose(depfile);