Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 18 Jan 2024 22:26:21 GMT
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: d18406a12045 - stable/13 - kldxref: Cast rtype to int in ef_aarch64.c in warning
Message-ID:  <202401182226.40IMQLH4090184@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by jhb:

URL: https://cgit.FreeBSD.org/src/commit/?id=d18406a120457949a9153472d72ea8ebe169921d

commit d18406a120457949a9153472d72ea8ebe169921d
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-12-13 20:17:44 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2024-01-18 21:30:06 +0000

    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
    
    (cherry picked from commit 894f3f48c3ea27a6f0f54850595ff48db9ee4861)
---
 usr.sbin/kldxref/ef_aarch64.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401182226.40IMQLH4090184>