13 const int len = prop.
len();
16 bool printable = (
string[0] !=
'\0') && (
string[len - 1] ==
'\0');
20 for (
int i = 0; i < len; ++i)
22 const char c =
string[i];
23 if (!(c >= 32 && c <= 126) && (c !=
'\0'))
34 for (
int i = 0; i < len - 1; ++i)
43 else if (prop.
len() == 4)
45 else if (prop.
len() == 8)
58 for (
const auto &[base,
size] : regs)
65 const size_t len = prop.
len();
67 for (
size_t i = 0; i < len; ++i)
72 for (
size_t j = i - 16; j <= i; j++)
74 const char c = data[j];
75 pr_cont(
"%c", c >= 32 && c <= 126 ? c :
'.');
81 for (
size_t j = 0; j < indent_len; ++j)
91 size_t spaces = (16 - (len % 16)) * 3;
96 pr_cont(
"%*c", (
int) spaces,
' ');
97 for (
size_t i = len - (len % 16); i < len; i++)
99 const char c = data[i];
100 pr_cont(
"%c", c >= 32 && c <= 126 ? c :
'.');
114 for (
int i = 0; i < depth; ++i)
129 for (
int i = 0; i < depth + 1; ++i)
132 pr_cont(
"%s", prop.get_name());
147 for (
const auto child : node)
150 for (
int i = 0; i < depth; ++i)
const char * get_name() const
node_property_list properties() const
const char * get_string() const
const char * get_name() const
Class to iterate over reg property cells.
bool verify_validity() const
static void print_property_value(const dt_property &prop, size_t indent_len=0)
void dump_fdt_node(const dt_node &node, int depth=0)
MOSAPI s32 strcmp(const char *str1, const char *str2)
static size_t strlen(const char *s)