Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3289921pxk; Mon, 21 Sep 2020 09:48:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyFi4a1DkppV0q1pq8NV/PdEU9h8c++ixQXDW4SU1a5zVAMNQpY5BfZFTXfsPxQRQysQYqZ X-Received: by 2002:a17:906:6005:: with SMTP id o5mr282721ejj.465.1600706919940; Mon, 21 Sep 2020 09:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600706919; cv=none; d=google.com; s=arc-20160816; b=zyeIvZSY5ZaLU1+mEilWblJCu+8a5g+ltiwAe7QcZOnIAVTRpWJJAtMyGzi2q5KhzZ 0xpylZuPGwpq4nPA8FNofZguL6c7JLgItFEA8HJg46k6OPJbGUY3yogK6v+bWYW1h8ZH c0X1YVsYkJz1XQ8qtlfm8ZNpor8RUEf0+PWG+AGNDFc0n76Eo2RwYf5rL2A+9VGJp5YX 8i9MEi7i73ajFpezC6KqUhsvHpeQhcSebvC1a2UnrhgzDw9Exx7UsvmV7HhxNXgfZiFH afu8qAcKHJv3LcXTjhosDk5KKS8U7BHustgNp44UcNjpsePDclIIVPm1jLrgpNBsr2bh StDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=n2205lBQ4zkxmP/X5Hi4lo8SySoDLrrZcirCIPH53uE=; b=ofka1Z33wZCq+X6yUpINC/LTF5B6HxgUgmTbI3e/cX474R1efqWASTYRKA3aIv6nGv 0ccuQQARgu/l4KbuRlWrD7yW4jQm8vka7VIVsCQYb3ZFz7Jx+JGBdKFZF0K6iItuw/vl A+76bExiVja8aiFCTZbFBtCPI/grYhjCPCcesFnLQZPmqCZ+JCGNrK4YjKJGLpIUYk5I MImSJX7O1heB1m/pq3+TgF+Tp+xFVHPV81ZboMf4zQj0y0k6ugxzzErQSBl2zgyDtQxm hVSypyNP7VPbWW2q4mejlkzbCJvE0L0L+vmDQUUW9LsF/O72otbg31STs8Vn75oOhD3K Vqvw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MInVX8tV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u6si8413728edx.293.2020.09.21.09.48.16; Mon, 21 Sep 2020 09:48:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=MInVX8tV; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729742AbgIUQrT (ORCPT + 99 others); Mon, 21 Sep 2020 12:47:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:53954 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729760AbgIUQrO (ORCPT ); Mon, 21 Sep 2020 12:47:14 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id BFBA423888; Mon, 21 Sep 2020 16:47:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600706834; bh=DeR0aKI8WkL4uiBhR9N2qdwDYZpfrYva1bno0IxnhGI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=MInVX8tVNS5Mdx/QJMYiz08GiUyf8BggLfkAowDB0qEmLQr+Ke0cssFL3DMEgusZM 0smD7Nc6bMiZJKatwgkkVdmxMf1KKZq595e8XjjmGor9SRQ45XfPDx58NqQD35Gtrb rl/zjx4uBHpgGG6iQOT3AQLFzb7m4p48AywaltKM= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Christophe Leroy , Andrew Morton , Linus Torvalds Subject: [PATCH 5.8 112/118] selftests/vm: fix display of page size in map_hugetlb Date: Mon, 21 Sep 2020 18:28:44 +0200 Message-Id: <20200921162041.591047289@linuxfoundation.org> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200921162036.324813383@linuxfoundation.org> References: <20200921162036.324813383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Christophe Leroy commit 1ec882fc81e3177faf055877310dbdb0c68eb7db upstream. The displayed size is in bytes while the text says it is in kB. Shift it by 10 to really display kBytes. Fixes: fa7b9a805c79 ("tools/selftest/vm: allow choosing mem size and page size in map_hugetlb") Signed-off-by: Christophe Leroy Signed-off-by: Andrew Morton Cc: Link: https://lkml.kernel.org/r/e27481224564a93d14106e750de31189deaa8bc8.1598861977.git.christophe.leroy@csgroup.eu Signed-off-by: Linus Torvalds Signed-off-by: Greg Kroah-Hartman --- tools/testing/selftests/vm/map_hugetlb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/tools/testing/selftests/vm/map_hugetlb.c +++ b/tools/testing/selftests/vm/map_hugetlb.c @@ -83,7 +83,7 @@ int main(int argc, char **argv) } if (shift) - printf("%u kB hugepages\n", 1 << shift); + printf("%u kB hugepages\n", 1 << (shift - 10)); else printf("Default size hugepages\n"); printf("Mapping %lu Mbytes\n", (unsigned long)length >> 20);