提交 57ac895a 编写于 作者: D Davide Brini 提交者: Linus Torvalds

uml: fix umid in xterm titles

Calls lines_init() *after* xterm_title is modified to include umid.
Signed-off-by: NDavide Brini <davide.brini@unibo.it>
Signed-off-by: NJeff Dike <jdike@linux.intel.com>
Acked-by: NPaolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c74c69b4
...@@ -191,12 +191,12 @@ static int ssl_init(void) ...@@ -191,12 +191,12 @@ static int ssl_init(void)
ssl_driver = register_lines(&driver, &ssl_ops, serial_lines, ssl_driver = register_lines(&driver, &ssl_ops, serial_lines,
ARRAY_SIZE(serial_lines)); ARRAY_SIZE(serial_lines));
lines_init(serial_lines, ARRAY_SIZE(serial_lines), &opts);
new_title = add_xterm_umid(opts.xterm_title); new_title = add_xterm_umid(opts.xterm_title);
if (new_title != NULL) if (new_title != NULL)
opts.xterm_title = new_title; opts.xterm_title = new_title;
lines_init(serial_lines, ARRAY_SIZE(serial_lines), &opts);
ssl_init_done = 1; ssl_init_done = 1;
register_console(&ssl_cons); register_console(&ssl_cons);
return 0; return 0;
......
...@@ -166,12 +166,12 @@ int stdio_init(void) ...@@ -166,12 +166,12 @@ int stdio_init(void)
return -1; return -1;
printk(KERN_INFO "Initialized stdio console driver\n"); printk(KERN_INFO "Initialized stdio console driver\n");
lines_init(vts, ARRAY_SIZE(vts), &opts);
new_title = add_xterm_umid(opts.xterm_title); new_title = add_xterm_umid(opts.xterm_title);
if(new_title != NULL) if(new_title != NULL)
opts.xterm_title = new_title; opts.xterm_title = new_title;
lines_init(vts, ARRAY_SIZE(vts), &opts);
con_init_done = 1; con_init_done = 1;
register_console(&stdiocons); register_console(&stdiocons);
return 0; return 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册