]> asedeno.scripts.mit.edu Git - linux.git/commit
selftests/vm: write strlen length instead of sizeof to nr_hugepages
authorYannick Brosseau <scientist@fb.com>
Mon, 20 Jun 2016 15:07:21 +0000 (08:07 -0700)
committerShuah Khan <shuahkh@osg.samsung.com>
Mon, 27 Jun 2016 19:18:26 +0000 (13:18 -0600)
commitee65735dd5acecbf335f9aa32e3b129a1de9e184
treeca48c22d86c0bb81949c02469afdc5f54b159d2c
parent3aefd1febd882a76e21ca8f61ade03b9c1a2c719
selftests/vm: write strlen length instead of sizeof to nr_hugepages

When setting back the initial value to nr_hugepages, the
test was writing a length sizeof of the string and checking
that strlen was writen. Since those values are not the same,
use strlen in both place instead.

Also make the error messages more explicit to help in future
debugging.

Signed-off-by: Yannick Brosseau <scientist@fb.com>
Signed-off-by: Shuah Khan <shuahkh@osg.samsung.com>
tools/testing/selftests/vm/compaction_test.c