aboutsummaryrefslogtreecommitdiff
path: root/modules/devices/devicetree.c
diff options
context:
space:
mode:
authorBurt P <pburt0@gmail.com>2017-07-17 00:52:23 -0500
committerLeandro Pereira <leandro@hardinfo.org>2017-07-19 07:20:40 -0700
commit4c9f8cc19db92b7675b1229903ba2a4660a9bb0c (patch)
tree06a5a57104a82f802ea43e5b2845561180b23ab9 /modules/devices/devicetree.c
parentf66f6e6e74a52ae43a000329ba9c3a0b51ebe26f (diff)
device tree: small fixes
Signed-off-by: Burt P <pburt0@gmail.com>
Diffstat (limited to 'modules/devices/devicetree.c')
-rw-r--r--modules/devices/devicetree.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/devices/devicetree.c b/modules/devices/devicetree.c
index b153b79a..4413fd43 100644
--- a/modules/devices/devicetree.c
+++ b/modules/devices/devicetree.c
@@ -124,7 +124,7 @@ static char* dt_str(dt_raw *prop) {
} else if (i == DTP_INT && prop->length == 4) {
ret = g_strdup_printf("%d", be32toh(*(int*)prop->data) );
} else {
- ret = g_strdup_printf("{data} (%d bytes)", prop->length);
+ ret = g_strdup_printf("{data} (%u bytes)", prop->length);
}
}
return ret;
@@ -280,7 +280,7 @@ void add_keys(char *np) {
ftmp = g_strdup_printf("%s/%s", dir_path, fn);
if ( g_file_test(ftmp, G_FILE_TEST_IS_DIR) ) {
ntmp = g_strdup_printf("%s/%s", np, fn);
- ptmp = g_strdup_printf("%s/name", ntmp, fn);
+ ptmp = g_strdup_printf("%s/name", ntmp);
n_name = get_dt_string(ptmp, 0);
n_info = get_node(ntmp);
mi_add(ntmp, n_info);