mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
[PATCH] Fix linux banner utsname information
utsname information is shown in the linux banner, which also is used for /proc/version (which can have different utsname values inside a uts namespaces). this patch makes the varying data arguments and changes the string to a format string, using those arguments. Signed-off-by: Herbert Poetzl <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
6e2ac66470
commit
a2ee8649ba
4 changed files with 9 additions and 5 deletions
|
|
@ -252,8 +252,8 @@ static int version_read_proc(char *page, char **start, off_t off,
|
|||
{
|
||||
int len;
|
||||
|
||||
strcpy(page, linux_banner);
|
||||
len = strlen(page);
|
||||
len = sprintf(page, linux_banner,
|
||||
utsname()->release, utsname()->version);
|
||||
return proc_calc_metrics(page, start, off, count, eof, len);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue