diff options
author | Ian Campbell <ijc@hellion.org.uk> | 2017-02-03 08:29:39 +0000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2017-02-23 20:11:20 +1100 |
commit | acd1b534a5924e1fa2b8c941d1931d78ca327e18 (patch) | |
tree | ff9ae552fd94ae027a5af7c5316039aad7cc78a6 /dtc.c | |
parent | 120775eb1cf39f8dcecd695c3ff1cfef8aeb669d (diff) | |
download | dtc-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |