* [PATCH] proc: /proc filesystem check error message
@ 2025-08-19 12:49 Mallikarjun Thammanavar
0 siblings, 0 replies; only message in thread
From: Mallikarjun Thammanavar @ 2025-08-19 12:49 UTC (permalink / raw)
To: shuah; +Cc: linux-kernel, linux-fsdevel, linux-kselftest,
Mallikarjun Thammanavar
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-19 12:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-19 12:49 [PATCH] proc: /proc filesystem check error message Mallikarjun Thammanavar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).