diff options
author | Amitay Isaacs <amitay@ozlabs.org> | 2018-12-03 14:27:55 +1100 |
---|---|---|
committer | Alistair Popple <alistair@popple.id.au> | 2018-12-07 14:36:50 +1100 |
commit | 10b3ad5aedcfba57277a588281a57e58876d46ca (patch) | |
tree | 81651a6e50e62579df744f253044f8fb8db45d7e | |
parent | 9950bb81f5e56149d68ccfeb82137f7f8b5a0b4e (diff) | |
download | pdbg-10b3ad5aedcfba57277a588281a57e58876d46ca.tar.gz pdbg-10b3ad5aedcfba57277a588281a57e58876d46ca.zip |
libpdbg: Fix probing of pib
The kernel uses "%08x" to create a directory in debugfs.
Signed-off-by: Amitay Isaacs <amitay@ozlabs.org>
-rw-r--r-- | libpdbg/host.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |