Skip to content

Commit

Permalink
Merge pull request dynup#1323 from lulinqing/master
Browse files Browse the repository at this point in the history
examples: add cmdline-string.patch as a compatible example
  • Loading branch information
joe-lawrence authored Jan 25, 2023
2 parents 059467d + fa73892 commit a45c17f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions examples/cmdline-string.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff -Nupr src.orig/fs/proc/cmdline.c src/fs/proc/cmdline.c
--- src.orig/fs/proc/cmdline.c 2022-10-24 15:41:08.858760066 -0400
+++ src/fs/proc/cmdline.c 2022-10-24 15:41:11.698715352 -0400
@@ -6,8 +6,7 @@

static int cmdline_proc_show(struct seq_file *m, void *v)
{
- seq_puts(m, saved_command_line);
- seq_putc(m, '\n');
+ seq_printf(m, "%s kpatch=1\n", saved_command_line);
return 0;
}

0 comments on commit a45c17f

Please sign in to comment.