[Pdbg] [PATCH 1/4] libpdbg: Fix probing of pib

Amitay Isaacs amitay at ozlabs.org
Mon Dec 3 14:27:55 AEDT 2018


The kernel uses "%08x" to create a directory in debugfs.

Signed-off-by: Amitay Isaacs <amitay at ozlabs.org>
---
 libpdbg/host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libpdbg/host.c b/libpdbg/host.c
index 9d82618..1cc1b48 100644
--- a/libpdbg/host.c
+++ b/libpdbg/host.c
@@ -101,7 +101,7 @@ static int host_pib_probe(struct pdbg_target *target)
 		PR_ERROR("You may need to re-run the command as root.\n");
 	}
 
-	if (asprintf(&access_fn, "%s/%08d/access", XSCOM_BASE_PATH, chip_id) < 0)
+	if (asprintf(&access_fn, "%s/%08x/access", XSCOM_BASE_PATH, chip_id) < 0)
 		goto out;
 
 	*fd = open(access_fn, O_RDWR);
-- 
2.19.2



More information about the Pdbg mailing list