Thread (14 messages) 14 messages, 6 authors, 2021-01-19
STALE1968d
Revisions (3)
  1. v2 current
  2. v3 [diff vs current]
  3. v4 [diff vs current]

[PATCH v2 1/6] API: Add FILE_SCANF to new lib

From: Richard Palethorpe <hidden>
Date: 2021-01-19 14:38:50
Also in: ltp
Subsystem: the rest · Maintainer: Linus Torvalds

Signed-off-by: Richard Palethorpe <redacted>
---
 include/tst_safe_file_ops.h | 3 +++
 1 file changed, 3 insertions(+)
diff --git a/include/tst_safe_file_ops.h b/include/tst_safe_file_ops.h
index 894c16123..ea8f89263 100644
--- a/include/tst_safe_file_ops.h
+++ b/include/tst_safe_file_ops.h
@@ -7,6 +7,9 @@
 
 #include "safe_file_ops_fn.h"
 
+#define FILE_SCANF(path, fmt, ...) \
+	file_scanf(__FILE__, __LINE__, (path), (fmt), ## __VA_ARGS__)
+
 #define SAFE_FILE_SCANF(path, fmt, ...) \
 	safe_file_scanf(__FILE__, __LINE__, NULL, \
 	                (path), (fmt), ## __VA_ARGS__)
-- 
2.29.2
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help