diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2007-10-17 12:39:10 +1000 |
---|---|---|
committer | Jon Loeliger <jdl@freescale.com> | 2007-10-17 07:14:38 -0500 |
commit | 5a98ddd10af0113d80e08946f9ba5dbc99174402 (patch) | |
tree | 8ac2b7b8df05ec751e1e95b53fb4362c0c951cca /tests/testdata.h | |
parent | 32b6bd349087019d2915f350e9f3f0e64ec69e73 (diff) | |
download | dtc-5a98ddd10af0113d80e08946f9ba5dbc99174402.zip dtc-5a98ddd10af0113d80e08946f9ba5dbc99174402.tar.gz dtc-5a98ddd10af0113d80e08946f9ba5dbc99174402.tar.bz2 |
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>
Diffstat (limited to 'tests/testdata.h')
-rw-r--r-- | tests/testdata.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/testdata.h b/tests/testdata.h index 525177f..94f3dee 100644 --- a/tests/testdata.h +++ b/tests/testdata.h @@ -24,7 +24,8 @@ #define TEST_VALUE_2 cell_to_fdt(0xabcd1234) #define TEST_STRING_1 "hello world" -#define TEST_STRING_2 "nastystring: \a\b\t\n\v\f\r\\\"\xff" +#define TEST_STRING_2 "nastystring: \a\b\t\n\v\f\r\\\"" +#define TEST_STRING_3 "\xde\xad\xbe\xef" #ifndef __ASSEMBLY__ extern struct fdt_header _test_tree1; |