selftests/powerpc: Fix subpage_prot test to return !0 on failure
authorMichael Ellerman <mpe@ellerman.id.au>
Mon, 2 May 2016 04:54:29 +0000 (14:54 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 11 May 2016 11:54:02 +0000 (21:54 +1000)
commit2f67798c1f9f35ba576ac0639b9b648b9b2033f6
treead610e6f5c36873060168baafe9bda6f8ad3d320
parent438517ec78fa4e9db9892e749ed50e2a21f5f17f
selftests/powerpc: Fix subpage_prot test to return !0 on failure

It's helpful for automated testing if the test returns error codes back
to the calling program.

While we're here fix all the usages of %p to remove the double 0x, ie.
%p already includes 0x.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
tools/testing/selftests/powerpc/mm/subpage_prot.c