Commit 15a9c81
committed
lopper: correctly label compact (or sparse) nodes in --enhanced mode
Before this commit, the following device tree
/dts-v1/;
/ {
compact_label: compact_thing@0 { compatible = "baz"; };
less_compact_label: compact_thing@1 {
compatible = "baz"; };
normal_label: compact_thing@2 {
compatible = "baz";
};
sparse_label: compact_thing@3
{
compatible = "baz";
};
};
...resulted in mangled device-tree code (and hence a failing dtc
invocation). By matching the "{" inside the regular expression, we no
longer rely on whitespace as a marker for structure.
Signed-off-by: Graeme Smecher <[email protected]>1 parent 1288749 commit 15a9c81
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
916 | 916 | | |
917 | 917 | | |
918 | 918 | | |
919 | | - | |
| 919 | + | |
920 | 920 | | |
921 | 921 | | |
922 | 922 | | |
| |||
0 commit comments