git: f62d90e5e938 - main - x86/xen: use correct printf specifier.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 22 Feb 2024 14:40:32 UTC
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(); }