summaryrefslogtreecommitdiffstats
path: root/libpdbg/kernel.c
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2017-02-21 09:34:51 +1100
committerAlistair Popple <alistair@popple.id.au>2017-02-21 09:34:51 +1100
commit29f173dad5ee386afac33d05991a74d3e9647c2d (patch)
tree478ba7f24a1d591812f17702a2e7c722342ab555 /libpdbg/kernel.c
parent6df751700763f9fa6649b15fc5859b11dec0e99e (diff)
downloadpdbg-29f173dad5ee386afac33d05991a74d3e9647c2d.tar.gz
pdbg-29f173dad5ee386afac33d05991a74d3e9647c2d.zip
libpdbg/kernel.c: Don't emit warnings for failure to read 0xc09
The hmfsi attempts to read 0xc09 from every link to check if something is present on the link. This means we expect reads of 0x????c09 to occasionally fail. Future improvments to the probing code should eliminate these reads, but in the meantime silence the warnings. Signed-off-by: Alistair Popple <alistair@popple.id.au>
Diffstat (limited to 'libpdbg/kernel.c')
-rw-r--r--libpdbg/kernel.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/libpdbg/kernel.c b/libpdbg/kernel.c
index 2694ba0..735c3c1 100644
--- a/libpdbg/kernel.c
+++ b/libpdbg/kernel.c
@@ -89,7 +89,11 @@ static int kernel_fsi_getcfam(struct target *target, uint64_t addr64, uint64_t *
rc = read(fsi_fd, value, 4);
if (rc < 0) {
- warn("Failed to read from 0x%08x (%016llx)", (uint32_t)addr, addr64);
+ if ((addr64 & 0xfff) != 0xc09)
+ /* We expect reads of 0xc09 to occasionally
+ * fail as the probing code uses it to see
+ * if anything is present on the link. */
+ warn("Failed to read from 0x%08x (%016llx)", (uint32_t)addr, addr64);
return errno;
}
OpenPOWER on IntegriCloud