diff mbox series

[03/11] host: Make debugfs scom file hex digit not decimal

Message ID 20180607065438.18257-3-mikey@neuling.org
State Accepted
Headers show
Series [01/11] Cleanup exit code | expand

Commit Message

Michael Neuling June 7, 2018, 6:54 a.m. UTC
The kernel uses hex numbers not decimal hence this was broken on a 2
DCM Tuletta which uses chip ids above 9.

Signed-off-by: Michael Neuling <mikey@neuling.org>
---
 libpdbg/host.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/libpdbg/host.c b/libpdbg/host.c
index 5e0e08fc33..483e04881c 100644
--- a/libpdbg/host.c
+++ b/libpdbg/host.c
@@ -95,7 +95,7 @@  static int host_pib_probe(struct pdbg_target *target)
 	if (chip_id == -1)
 		goto out;
 
-	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);