Skip to contentSkip to conversation

seq_file-add-seq_escape_str-as-replica-of-string_escape_str.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jul 6, 2021

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: seq_file: add seq_escape_str() as replica of string_escape_str()
has been removed from the -mm tree. Its filename was
seq_file-add-seq_escape_str-as-replica-of-string_escape_str.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Andy Shevchenko <[email protected]>
Subject: seq_file: add seq_escape_str() as replica of string_escape_str()

In some cases we want to escape characters from NULL-terminated strings. Add seq_escape_str() as replica of string_escape_str() for that.

---

 include/linux/seq_file.h |    7 +++++++
 1 file changed, 7 insertions(+)
include/linux/seq_file.h renamed from include/linux/seq_file.h~seq_file-add-seq_escape_str-as-replica-of-string_escape_str +7 -0
@@ -128,6 +128,13 @@ void seq_put_hex_ll(struct seq_file *m,
 
 void seq_escape_mem(struct seq_file *m, const char *src, size_t len,
 		    unsigned int flags, const char *esc);
+
+static inline void seq_escape_str(struct seq_file *m, const char *src,
+				  unsigned int flags, const char *esc)
+{
+	seq_escape_mem(m, src, strlen(src), flags, esc);
+}
+
 void seq_escape(struct seq_file *m, const char *s, const char *esc);
 void seq_escape_mem_ascii(struct seq_file *m, const char *src, size_t isz);
 

_

Patches currently in -mm which might be from [email protected] are