mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: Improve -Odts output
This patch makes improvements to the way properties are printed when in dtc is producing dts output. - Characters which need escaping are now properly handled when printing properties as strings - The heuristics for what format to use for a property are improved so that 'compatible' properties will be displayed as expected. - escapes.dts is altered to better demonstrate the changes, and the string_escapes testcase is adjusted accordingly. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
32b6bd3490
commit
5a98ddd10a
4 changed files with 103 additions and 29 deletions
|
@ -1,4 +1,5 @@
|
|||
/ {
|
||||
compatible = "test_string_escapes";
|
||||
escape-str = "nastystring: \a\b\t\n\v\f\r\\\"\xff";
|
||||
escape-str = "nastystring: \a\b\t\n\v\f\r\\\"";
|
||||
escape-str-2 = "\xde\xad\xbe\xef";
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue