From: Mallikarjun Thammanavar <mallikarjunst09@gmail.com>
To: shuah@kernel.org
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-kselftest@vger.kernel.org,
Mallikarjun Thammanavar <mallikarjunst09@gmail.com>
Subject: [PATCH] proc: /proc filesystem check error message
Date: Tue, 19 Aug 2025 12:49:23 +0000 [thread overview]
Message-ID: <20250819124923.9094-1-mallikarjunst09@gmail.com> (raw)
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
reply other threads:[~2025-08-19 12:49 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250819124923.9094-1-mallikarjunst09@gmail.com \
--to=mallikarjunst09@gmail.com \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®