mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-14 00:37:41 -04:00
Revert dts output formatting changes of spaces around brackets
Commit32b9c61307
("Preserve datatype markers when emitting dts format") add spaces between <> and [] and the encapsulated numbers. Fix this to keep the prior formatting and not break some users needlessly. Fixes:32b9c61307
("Preserve datatype markers when emitting dts format") Reported-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Rob Herring <robh@kernel.org> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
c86da84d30
commit
d448f9a5fd
2 changed files with 22 additions and 20 deletions
|
@ -130,6 +130,8 @@ static void write_propval_int(FILE *f, const char *p, size_t len, size_t width)
|
||||||
fprintf(f, "0x%02"PRIx64, fdt64_to_cpu(*(const fdt64_t*)p));
|
fprintf(f, "0x%02"PRIx64, fdt64_to_cpu(*(const fdt64_t*)p));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if (p + width < end)
|
||||||
|
fputc(' ', f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue