Skip to contentSkip to conversation

proc: /proc filesystem check error message

PATCH New Mallikarjun Thammanavar 1 participant 1 message Aug 19, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 proc: /proc filesystem check error message

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

---
 tools/testing/selftests/proc/read.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/proc/read.c +1 -1
index 35ee78dff144..c0f44ee71e79 100644
@@ -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;
 	}
 
Signature · 1 line
2.43.0