Skip to content

Commit

Permalink
uml: fix umid in xterm titles
Browse files Browse the repository at this point in the history
Calls lines_init() *after* xterm_title is modified to include umid.

Signed-off-by: Davide Brini <[email protected]>
Signed-off-by: Jeff Dike <[email protected]>
Acked-by: Paolo 'Blaisorblade' Giarrusso <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Davide Brini authored and Linus Torvalds committed May 7, 2007
1 parent c74c69b commit 57ac895
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions arch/um/drivers/ssl.c
Original file line number Diff line number Diff line change
Expand Up @@ -191,12 +191,12 @@ static int ssl_init(void)
ssl_driver = register_lines(&driver, &ssl_ops, serial_lines,
ARRAY_SIZE(serial_lines));

lines_init(serial_lines, ARRAY_SIZE(serial_lines), &opts);

new_title = add_xterm_umid(opts.xterm_title);
if (new_title != NULL)
opts.xterm_title = new_title;

lines_init(serial_lines, ARRAY_SIZE(serial_lines), &opts);

ssl_init_done = 1;
register_console(&ssl_cons);
return 0;
Expand Down
4 changes: 2 additions & 2 deletions arch/um/drivers/stdio_console.c
Original file line number Diff line number Diff line change
Expand Up @@ -166,12 +166,12 @@ int stdio_init(void)
return -1;
printk(KERN_INFO "Initialized stdio console driver\n");

lines_init(vts, ARRAY_SIZE(vts), &opts);

new_title = add_xterm_umid(opts.xterm_title);
if(new_title != NULL)
opts.xterm_title = new_title;

lines_init(vts, ARRAY_SIZE(vts), &opts);

con_init_done = 1;
register_console(&stdiocons);
return 0;
Expand Down

0 comments on commit 57ac895

Please sign in to comment.