Skip to content

Commit

Permalink
hdata: Make out-of-range idata print at PR_DEBUG
Browse files Browse the repository at this point in the history
Some fields just aren't populated on some systems.

Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Reviewed-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
  • Loading branch information
oohal authored and stewartsmith committed Jun 6, 2017
1 parent 9abb449 commit 23ca5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hdata/hdif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 23ca5d4

Please sign in to comment.