aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-12-13 20:17:44 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-12-13 20:17:44 +0000
commit894f3f48c3ea27a6f0f54850595ff48db9ee4861 (patch)
treeb19909bd8a05498f59df58b6fac592c76f8d8214
parentbc6051a060f7f39540e284f2934e61411590dbfd (diff)
downloadsrc-894f3f48c3ea27a6f0f54850595ff48db9ee4861.tar.gz
src-894f3f48c3ea27a6f0f54850595ff48db9ee4861.zip
kldxref: Cast rtype to int in ef_aarch64.c in warning
This is consistent with the other architecture-specific relocation handlers. Reported by: mjg Sponsored by: DARPA
-rw-r--r--usr.sbin/kldxref/ef_aarch64.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/kldxref/ef_aarch64.c b/usr.sbin/kldxref/ef_aarch64.c
index 5bd521b28e38..f1e499e76ef1 100644
--- a/usr.sbin/kldxref/ef_aarch64.c
+++ b/usr.sbin/kldxref/ef_aarch64.c
@@ -65,7 +65,7 @@ ef_aarch64_reloc(struct elf_file *ef, const void *reldata, Elf_Type reltype,
case R_AARCH64_ABS64:
break;
default:
- warnx("unhandled relocation type %lu", rtype);
+ warnx("unhandled relocation type %d", (int)rtype);
break;
}
return (0);