| 125 | } |
| 126 | |
| 127 | const char *dtb_node_read_string(const struct dtb_node *node, const char *propname) |
| 128 | { |
| 129 | const char *str; |
| 130 | int len; |
| 131 | |
| 132 | str = dtb_node_read_prop(node, propname, &len); |
| 133 | if (!str) |
| 134 | return NULL; |
| 135 | |
| 136 | if (strnlen(str, len) >= len) |
| 137 | { |
| 138 | debug("<invalid>\n"); |
| 139 | return NULL; |
| 140 | } |
| 141 | debug("%s\n", str); |
| 142 | |
| 143 | return str; |
| 144 | } |
| 145 | |
| 146 | const struct dtb_node *dtb_node_find_subnode(const struct dtb_node *node, const char *subnode_name) |
| 147 | { |
no test coverage detected