Skip to content

Instantly share code, notes, and snippets.

@kragniz
Created June 10, 2015 20:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kragniz/2ebd36da3b72ffefbe6b to your computer and use it in GitHub Desktop.
Save kragniz/2ebd36da3b72ffefbe6b to your computer and use it in GitHub Desktop.
diff --git a/fs/proc/version.c b/fs/proc/version.c
index d2154eb..21ccc9b 100644
--- a/fs/proc/version.c
+++ b/fs/proc/version.c
@@ -4,10 +4,16 @@
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/utsname.h>
+#include <generated/compile.h>
+
+const char lp_linux_proc_banner[] =
+ "%s version %s-livepatch"
+ " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
+ " (" LINUX_COMPILER ") %s\n";
static int version_proc_show(struct seq_file *m, void *v)
{
- seq_printf(m, linux_proc_banner,
+ seq_printf(m, lp_linux_proc_banner,
utsname()->sysname,
utsname()->release,
utsname()->version);
--
2.1.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment