Skip to content

Commit a45c17f

Browse files
authored
Merge pull request #1323 from lulinqing/master
examples: add cmdline-string.patch as a compatible example
2 parents 059467d + fa73892 commit a45c17f

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

examples/cmdline-string.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff -Nupr src.orig/fs/proc/cmdline.c src/fs/proc/cmdline.c
2+
--- src.orig/fs/proc/cmdline.c 2022-10-24 15:41:08.858760066 -0400
3+
+++ src/fs/proc/cmdline.c 2022-10-24 15:41:11.698715352 -0400
4+
@@ -6,8 +6,7 @@
5+
6+
static int cmdline_proc_show(struct seq_file *m, void *v)
7+
{
8+
- seq_puts(m, saved_command_line);
9+
- seq_putc(m, '\n');
10+
+ seq_printf(m, "%s kpatch=1\n", saved_command_line);
11+
return 0;
12+
}
13+

0 commit comments

Comments
 (0)