[PATCH] proc: /proc filesystem check error message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Improve /proc filesystem check error message when filesystem type
is unexpected

Signed-off-by: Mallikarjun Thammanavar <mallikarjunst09@xxxxxxxxx>
---
 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





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux