]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/vm: fix display of page size in map_hugetlb
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Sat, 19 Sep 2020 04:20:28 +0000 (21:20 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Sat, 19 Sep 2020 20:13:39 +0000 (13:13 -0700)
commit11691e9594ece5f5588b8b7f9069a28c548f02c0
tree0e9f600920a8e042195df66e037d8c849eafe50f
parentc43d124cc97ed78f35635069c9cf85ad5990f9d0
selftests/vm: fix display of page size in map_hugetlb

The displayed size is in bytes while the text says it is in kB.

Shift it by 10 to really display kBytes.

Fixes: 26f228310b06 ("tools/selftest/vm: allow choosing mem size and page size in map_hugetlb")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Cc: <stable@vger.kernel.org>
Link: https://lkml.kernel.org/r/e27481224564a93d14106e750de31189deaa8bc8.1598861977.git.christophe.leroy@csgroup.eu
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
tools/testing/selftests/vm/map_hugetlb.c