Commit d6a7a23
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 86b5ebb commit d6a7a23
1 file changed
+1
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
904 | 904 | | |
905 | 905 | | |
906 | 906 | | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | 907 | | |
911 | | - | |
| 908 | + | |
912 | 909 | | |
913 | 910 | | |
914 | 911 | | |
| |||
0 commit comments