[PATCH] proc: /proc filesystem check error message

Mallikarjun Thammanavar posted 1 patch 1 month, 2 weeks ago
tools/testing/selftests/proc/read.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] proc: /proc filesystem check error message
Posted by Mallikarjun Thammanavar 1 month, 2 weeks ago
Improve /proc filesystem check error message when filesystem type
is unexpected

Signed-off-by: Mallikarjun Thammanavar <mallikarjunst09@gmail.com>
---
 tools/testing/selftests/proc/read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/selftests/proc/read.c b/tools/testing/selftests/proc/read.c
index 35ee78dff144..c0f44ee71e79 100644
--- a/tools/testing/selftests/proc/read.c
+++ b/tools/testing/selftests/proc/read.c
@@ -138,7 +138,7 @@ int main(void)
 		return 1;
 	}
 	if (sfs.f_type != 0x9fa0) {
-		fprintf(stderr, "error: unexpected f_type %lx\n", (long)sfs.f_type);
+		fprintf(stderr, "error: /proc is not procfs (f_type = %lx)\n", (long)sfs.f_type);
 		return 2;
 	}
 
-- 
2.43.0