From 4c9f8cc19db92b7675b1229903ba2a4660a9bb0c Mon Sep 17 00:00:00 2001 From: Burt P Date: Mon, 17 Jul 2017 00:52:23 -0500 Subject: device tree: small fixes Signed-off-by: Burt P --- modules/devices/devicetree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/devices/devicetree.c') 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); -- cgit v1.2.3