From patchwork Thu Feb 6 12:10:24 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Liu X-Patchwork-Id: 11368321 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5B18F1398 for ; Thu, 6 Feb 2020 12:11:46 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 414A320730 for ; Thu, 6 Feb 2020 12:11:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 414A320730 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=xen.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=xen-devel-bounces@lists.xenproject.org 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 X-Inumbo-ID: aa10e560-48d9-11ea-af50-12813bfff9fa 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) 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) 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) 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_Pau_?= =?utf-8?q?Monn=C3=A9?= 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; for (i = 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");