From nobody Thu Feb 22 14:40:32 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TgbR42Wtdz5CjbN; Thu, 22 Feb 2024 14:40:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TgbR41yRFz46Jn; Thu, 22 Feb 2024 14:40:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708612832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N7ekdBNUOxLiucva1CiiyE8kKMtaOgphWqSb/6fkLPc=; b=SoqrOBCVd6MTJmuDMQ5yxgfTUTu3yP9F4I7iMWuTw+F89mQ4l4huDBivo1IlgVIaL7HWDk uzsv5s+V/WnpPVNRnvFSSDzw1KFg1fYJBOVf/HU+82+BqMPt1+JFXWHKJifQ6lzHDROijO 1BBqAotTr7EXJwxcTvi61WXL1DmThSqJqTaL++iZL0iAk7mDNsNUAYJLkNHgfgO3toLiQm at01IWeeMoBEbPT0r3MY3TY4xoZxkmkF/x+qkbn5mbWjp0IUG0ZqG3CO7Fo+v/8sastmXI 11fasmLVlVlSpWyWabI4BrI8DScpx1R41PQ4xMqrYi/2kLdg/PL7mBR9Z6lEQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708612832; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=N7ekdBNUOxLiucva1CiiyE8kKMtaOgphWqSb/6fkLPc=; b=GaTZxeQHcuf1AmsDmVgpYwhdWY0TetOCJJdJS10KsTQiZqay0b9DwLynDjEZwoza1WXq2X iNjhpBF3XCVU4abHcRrhqltibsA+qirIiTtMHmSqfchAX3KzbCR37Wp0ERGubobkxbR4OM Tubn662Is/Mgy7CzwDZjfci2xYG67gADm419b9Njz3OjLDZbIesS6INZKmwrjIiN8dd0OC TsHoLrhTwQ9selDBPU6Iioh5XdowqaCH8WE2DN9RBuYOGhn5nNRmY2rqfaRSuLoWHFdMRj 4rTGkqhn56h4rNQ0siVxUli7xzvNpIrlLcgo10l8koMyHGDfMVz0Z6OdFfnXuA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708612832; a=rsa-sha256; cv=none; b=LBAdHM3e1GVPy981fL9HQ6tsapC0iridvZ9ys/g4TPET5B8TinLXzajGRf8RUzBb2fOn6L clF1ABY2yXFLWPhe5KCE7c27aNB73JN6rZgUGzaME6QPo9zvZHSRTijONG6/uSkb4r51lI /WlUVSOMFd8/mx/VSy/C/xolYTvncACvNVoCZstudhHG7nr7wczsmB5S4alyzuwupFwRPb PQKl/1vESt2MSFMOvLQHGEA0tR1mCuxd7uwrfGzDGVO7dTxLue2meLYkWkxm6pqqHAJcKK q7hTMuL+a6YaVfmsftCtRTmy3FS7V/yfqFaaDOIcIJYdo7f/nR0151oZDcJ8oQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TgbR410dBzbGP; Thu, 22 Feb 2024 14:40:32 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41MEeWkt039681; Thu, 22 Feb 2024 14:40:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41MEeW9B039678; Thu, 22 Feb 2024 14:40:32 GMT (envelope-from git) Date: Thu, 22 Feb 2024 14:40:32 GMT Message-Id: <202402221440.41MEeW9B039678@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Roger Pau =?utf-8?Q?Monn=C3=A9?= Subject: git: f62d90e5e938 - main - x86/xen: use correct printf specifier. List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: royger X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f62d90e5e938ce72249bc9f5e5e2834ed4727fc4 Auto-Submitted: auto-generated The branch main has been updated by royger: URL: https://cgit.FreeBSD.org/src/commit/?id=f62d90e5e938ce72249bc9f5e5e2834ed4727fc4 commit f62d90e5e938ce72249bc9f5e5e2834ed4727fc4 Author: Roger Pau Monné AuthorDate: 2024-02-22 14:26:56 +0000 Commit: Roger Pau Monné 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(); }