Message ID | 20180607065438.18257-3-mikey@neuling.org |
---|---|
State | Accepted |
Headers | show |
Series | [01/11] Cleanup exit code | expand |
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);
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(-)