Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 44175
b: refs/heads/master
c: 8993780
h: refs/heads/master
i:
  44173: 8e08487
  44171: 065829b
  44167: acf1ea2
  44159: ee8aaf5
v: v3
  • Loading branch information
Linus Torvalds committed Dec 11, 2006
1 parent a1e2b37 commit a9d33bc
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9202f32558601c2c99ddc438eb3218131d00d413
refs/heads/master: 8993780a6e44fb4e7ed34e33458506a775356c6e
12 changes: 10 additions & 2 deletions trunk/fs/proc/proc_misc.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
#include <linux/vmalloc.h>
#include <linux/crash_dump.h>
#include <linux/pid_namespace.h>
#include <linux/compile.h>
#include <asm/uaccess.h>
#include <asm/pgtable.h>
#include <asm/io.h>
Expand Down Expand Up @@ -253,8 +254,15 @@ static int version_read_proc(char *page, char **start, off_t off,
{
int len;

len = sprintf(page, linux_banner,
utsname()->release, utsname()->version);
/* FIXED STRING! Don't touch! */
len = snprintf(page, PAGE_SIZE,
"%s version %s"
" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
" (" LINUX_COMPILER ")"
" %s\n",
utsname()->sysname,
utsname()->release,
utsname()->version);
return proc_calc_metrics(page, start, off, count, eof, len);
}

Expand Down
2 changes: 0 additions & 2 deletions trunk/include/linux/kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
#include <asm/byteorder.h>
#include <asm/bug.h>

extern const char linux_banner[];

#define INT_MAX ((int)(~0U>>1))
#define INT_MIN (-INT_MAX - 1)
#define UINT_MAX (~0U)
Expand Down
8 changes: 7 additions & 1 deletion trunk/init/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,12 @@ void __init __attribute__((weak)) smp_setup_processor_id(void)
{
}

static const char linux_banner[] =
"Linux version " UTS_RELEASE
" (" LINUX_COMPILE_BY "@" LINUX_COMPILE_HOST ")"
" (" LINUX_COMPILER ")"
" " UTS_VERSION "\n";

asmlinkage void __init start_kernel(void)
{
char * command_line;
Expand All @@ -509,7 +515,7 @@ asmlinkage void __init start_kernel(void)
boot_cpu_init();
page_address_init();
printk(KERN_NOTICE);
printk(linux_banner, UTS_RELEASE, UTS_VERSION);
printk(linux_banner);
setup_arch(&command_line);
unwind_setup();
setup_per_cpu_areas();
Expand Down
5 changes: 0 additions & 5 deletions trunk/init/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,3 @@ struct uts_namespace init_uts_ns = {
},
};
EXPORT_SYMBOL_GPL(init_uts_ns);

const char linux_banner[] =
"Linux version %s (" LINUX_COMPILE_BY "@"
LINUX_COMPILE_HOST ") (" LINUX_COMPILER ") %s\n";

0 comments on commit a9d33bc

Please sign in to comment.