From 23ca5d4fe40fea454b0a1c120d4a4a33aa3f2476 Mon Sep 17 00:00:00 2001 From: Oliver O'Halloran Date: Fri, 26 May 2017 16:28:38 +1000 Subject: hdata: Make out-of-range idata print at PR_DEBUG Some fields just aren't populated on some systems. Signed-off-by: Oliver O'Halloran Reviewed-by: Gavin Shan Signed-off-by: Stewart Smith --- hdata/hdif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hdata') diff --git a/hdata/hdif.c b/hdata/hdif.c index dd5e1228..b616a331 100644 --- a/hdata/hdif.c +++ b/hdata/hdif.c @@ -30,8 +30,8 @@ const void *HDIF_get_idata(const struct HDIF_common_hdr *hdif, unsigned int di, } if (di >= be16_to_cpu(hdr->idptr_count)) { - prerror("HDIF: idata index out of range !\n"); - backtrace(); + prlog(PR_DEBUG, "HDIF: idata %d out of range for %.6s!\n", + di, hdr->id); return NULL; } -- cgit v1.2.1