Date: Thu, 22 Feb 2024 14:40:32 GMT From: Roger Pau =?utf-8?Q?Monn=C3=A9?= <royger@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: f62d90e5e938 - main - x86/xen: use correct printf specifier. Message-ID: <202402221440.41MEeW9B039678@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=f62d90e5e938ce72249bc9f5e5e2834ed4727fc4 commit f62d90e5e938ce72249bc9f5e5e2834ed4727fc4 Author: Roger Pau Monné <royger@FreeBSD.org> AuthorDate: 2024-02-22 14:26:56 +0000 Commit: Roger Pau Monné <royger@FreeBSD.org> CommitDate: 2024-02-22 14:32:36 +0000 x86/xen: use correct printf specifier. Use %p instead of wrongly casting to uintptr_t and printing with %lx. Reported by: bapt Fixes: 9a687d1fe3af ('x86/xen: introduce a Xen early init function') Sponsored by: Cloud Software Group --- sys/x86/xen/hvm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/x86/xen/hvm.c b/sys/x86/xen/hvm.c index 17500516debf..22f070213f9b 100644 --- a/sys/x86/xen/hvm.c +++ b/sys/x86/xen/hvm.c @@ -153,7 +153,7 @@ early_init_vtop(void *addr) * initialization. */ if (__predict_false((uintptr_t)addr < KERNBASE)) { - xc_printf("invalid linear address: %#lx\n", (uintptr_t)addr); + xc_printf("invalid linear address: %p\n", addr); halt(); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202402221440.41MEeW9B039678>