From nobody Sat May 11 03:17:40 2024 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=none (zohomail.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1580991083756550.9041297035684; Thu, 6 Feb 2020 04:11:23 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1izfzP-0004tm-LU; Thu, 06 Feb 2020 12:10:35 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1izfzN-0004tf-W8 for xen-devel@lists.xenproject.org; Thu, 06 Feb 2020 12:10:34 +0000 Received: from mail-wr1-f65.google.com (unknown [209.85.221.65]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id aa10e560-48d9-11ea-af50-12813bfff9fa; Thu, 06 Feb 2020 12:10:29 +0000 (UTC) Received: by mail-wr1-f65.google.com with SMTP id w12so6903059wrt.2 for ; Thu, 06 Feb 2020 04:10:29 -0800 (PST) Received: from localhost.localdomain (41.142.6.51.dyn.plus.net. [51.6.142.41]) by smtp.gmail.com with ESMTPSA id 2sm3789362wrq.31.2020.02.06.04.10.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 04:10:27 -0800 (PST) X-Inumbo-ID: aa10e560-48d9-11ea-af50-12813bfff9fa X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=/5xyUTPHlnntCvjJ20lqVh79epuXpml2WbCik5V4xZo=; b=RUiGy89H29ENfJXzwaa+0vkLOJ580oBy9+6NKcOfrneAocPPICeBC3UOrc8rOP3wAL l2xO5LNFHXKS68acq2cRLalE6Mwk2yuDrjI3h41rFF0Izurqn+X5fH3kpTHlJuR0kuSW aILamzJYRsZIPO4FExm06RxE1AEvaYEJC+W4yq2Sx8qojchtI1MPkwLOUJe3ISF0QGQd U9lztUBHxagcFPCqTxxjqcgsohFLNbclTpT7qOZUJZO6KueJXPYtJOp2QUfqmmIOU0vj fTiJ6mAq/q0ckAqI4waoYG253YV5jLqeNWwKFyaPDNQ0KjYaU5xlfcABQtmGGPzDMP0A 0a2Q== X-Gm-Message-State: APjAAAXGBDJpLRr8wPGbjya2rsaopq1QQ+qJ3w6cVGg/LqBTlp4X7otX AAV0Q4OIfbr9dAgBFHZS9+ctn6L0jSU= X-Google-Smtp-Source: APXvYqwU6bLJahglAWi/O8nNDE0cBBCfr8IXLQJ1VspfzSabhdu47cFvE/pGbyWPh1jcmucNHAbn0w== X-Received: by 2002:adf:ed09:: with SMTP id a9mr3634352wro.350.1580991028084; Thu, 06 Feb 2020 04:10:28 -0800 (PST) From: Wei Liu To: Xen Development List Date: Thu, 6 Feb 2020 12:10:24 +0000 Message-Id: <20200206121024.21803-1-wl@xen.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH] x86: make it clear range is inclusive when printing e820 range X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Andrew Cooper , Jan Beulich , Wei Liu , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Change the format string to use "[,]" and subtract 1 from the end. Signed-off-by: Wei Liu Acked-by: Jan Beulich --- xen/arch/x86/e820.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/e820.c b/xen/arch/x86/e820.c index 160f029edd..c9dc52c768 100644 --- a/xen/arch/x86/e820.c +++ b/xen/arch/x86/e820.c @@ -92,9 +92,9 @@ static void __init print_e820_memory_map(struct e820entry= *map, unsigned int ent unsigned int i; =20 for (i =3D 0; i < entries; i++) { - printk(" %016Lx - %016Lx ", + printk(" [%016Lx, %016Lx] ", (unsigned long long)(map[i].addr), - (unsigned long long)(map[i].addr + map[i].size)); + (unsigned long long)(map[i].addr + map[i].size) - 1); switch (map[i].type) { case E820_RAM: printk("(usable)\n"); --=20 2.20.1 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel