Skip to contentSkip to conversation

getrlimit02: Fix comment indentation to fit RST format

PATCH New Ma Xinjian via ltp 1 participant 2 messages Feb 19, 2025 – Feb 20, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 getrlimit02: Fix comment indentation to fit RST format

---
 testcases/kernel/syscalls/getrlimit/getrlimit02.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
testcases/kernel/syscalls/getrlimit/getrlimit02.c +3 -3
index 20c247a0e..bbedabe28 100644
@@ -8,10 +8,10 @@
  * Test for checking error conditions for getrlimit(2):
  *
  * 1. getrlimit(2) returns -1 and sets errno to EFAULT if an invalid
- *	  address is given for address parameter.
+ *    address is given for address parameter.
  * 2. getrlimit(2) returns -1 and sets errno to EINVAL if an invalid
- *	  resource type (RLIM_NLIMITS is a out of range resource type) is
- *	  passed.
+ *    resource type (RLIM_NLIMITS is a out of range resource type) is
+ *    passed.
  */
 
 #include <sys/resource.h>
Signature · 5 lines
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

PATCH v2 1/1 getrlimit02: Fix the doc to fit RST format

---
 testcases/kernel/syscalls/getrlimit/getrlimit02.c | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
testcases/kernel/syscalls/getrlimit/getrlimit02.c +4 -6
index 20c247a0e..0d7c2bb32 100644
@@ -5,13 +5,11 @@
  */
 
 /*\
- * Test for checking error conditions for getrlimit(2):
+ * Verify that, getrlimit(2) returns -1 and sets errno to 
  *
- * 1. getrlimit(2) returns -1 and sets errno to EFAULT if an invalid
- *	  address is given for address parameter.
- * 2. getrlimit(2) returns -1 and sets errno to EINVAL if an invalid
- *	  resource type (RLIM_NLIMITS is a out of range resource type) is
- *	  passed.
+ * - EFAULT if an invalid address is given for address parameter.
+ * - EINVAL if an invalid resource type (RLIM_NLIMITS is a out of
+ *   range resource type) is passed.
  */
 
 #include <sys/resource.h>
Signature · 5 lines
2.47.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp