]> git.ozlabs.org Git - petitboot/commitdiff
ui/ncurses: Use tty name in default log filename
authorJeremy Kerr <jk@ozlabs.org>
Thu, 3 Apr 2014 07:17:27 +0000 (15:17 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 3 Apr 2014 07:17:27 +0000 (15:17 +0800)
When we have multiple ncurses UIs running, we'd like to log to separate
files. Currenly, all UIs log to the same file, which makes it diffifult
to determine which UI is logging each message.

This change uses the output of ttyname() (sanitised appropriately) as a
component of the default log filename.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found