HomeFreeBSD

kldxref: Tidy error handling for invalid addresses

Description

kldxref: Tidy error handling for invalid addresses

  • Don't print an offset value that's always zero.
  • ef_get_offset can't return -1.

Reviewed by: imp
Sponsored by: DARPA
Differential Revision: https://reviews.freebsd.org/D43124

(cherry picked from commit 6d46e2e0a7f345459fb42e666c7cb2e987c70857)

Details

Provenance
jhbAuthored on Dec 22 2023, 3:48 PM
Reviewer
imp
Differential Revision
D43124: kldxref: Tidy error handling for invalid addresses
Parents
rG1dde3d8d7bb0: kldxref: Reduce divergence between per-architecture files
Branches
Unknown
Tags
Unknown