summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/get_path.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/get_path.c b/tests/get_path.c
index 7352976..7701dba 100644
--- a/tests/get_path.c
+++ b/tests/get_path.c
@@ -42,7 +42,8 @@ static void check_path_buf(void *fdt, const char *path, int pathlen, int buflen)
memset(buf, POISON, sizeof(buf)); /* poison the buffer */
len = fdt_get_path(fdt, offset, buf, buflen);
- verbose_printf("get_path() %s -> %d -> %s\n", path, offset, buf);
+ verbose_printf("get_path() %s -> %d -> %s\n", path, offset,
+ len >= 0 ? buf : "<error>");
if (buflen <= pathlen) {
if (len != -FDT_ERR_NOSPACE)