diff options
Diffstat (limited to 'fs/proc')
-rw-r--r-- | fs/proc/proc_misc.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/fs/proc/proc_misc.c b/fs/proc/proc_misc.c index dc3e580d1dca..92ea7743fe8f 100644 --- a/fs/proc/proc_misc.c +++ b/fs/proc/proc_misc.c | |||
@@ -47,6 +47,7 @@ | |||
47 | #include <linux/vmalloc.h> | 47 | #include <linux/vmalloc.h> |
48 | #include <linux/crash_dump.h> | 48 | #include <linux/crash_dump.h> |
49 | #include <linux/pid_namespace.h> | 49 | #include <linux/pid_namespace.h> |
50 | #include <linux/compile.h> | ||
50 | #include <asm/uaccess.h> | 51 | #include <asm/uaccess.h> |
51 | #include <asm/pgtable.h> | 52 | #include <asm/pgtable.h> |
52 | #include <asm/io.h> | 53 | #include <asm/io.h> |
@@ -253,8 +254,15 @@ static int version_read_proc(char *page, char **start, off_t off, | |||
253 | { | 254 | { |
254 | int len; | 255 | int len; |
255 | 256 | ||
256 | len = sprintf(page, linux_banner, | 257 | /* FIXED STRING! Don't touch! */ |
257 | utsname()->release, utsname()->version); | 258 | len = snprintf(page, PAGE_SIZE, |
259 | "%s version %s" | ||
260 | " (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")" | ||
261 | " (" LINUX_COMPILER ")" | ||
262 | " %s\n", | ||
263 | utsname()->sysname, | ||
264 | utsname()->release, | ||
265 | utsname()->version); | ||
258 | return proc_calc_metrics(page, start, off, count, eof, len); | 266 | return proc_calc_metrics(page, start, off, count, eof, len); |
259 | } | 267 | } |
260 | 268 | ||