From ae0ba68f475ae5b057aad6538765bc8702134b9a Mon Sep 17 00:00:00 2001 From: Geoff Levand Date: Thu, 8 Mar 2012 18:31:50 -0800 Subject: Log file cleanups Signed-off-by: Geoff Levand --- ui/twin/main-generic.c | 2 +- ui/twin/pbt-main.c | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'ui/twin') diff --git a/ui/twin/main-generic.c b/ui/twin/main-generic.c index d314cbc..5020fa2 100644 --- a/ui/twin/main-generic.c +++ b/ui/twin/main-generic.c @@ -313,7 +313,7 @@ int main(int argc, char *argv[]) pb_log_always_flush(1); #endif - pb_log("--- pb-twin ---\n"); + pb_log("--- petitboot-twin ---\n"); sa.sa_handler = sig_handler; result = sigaction(SIGALRM, &sa, NULL); diff --git a/ui/twin/pbt-main.c b/ui/twin/pbt-main.c index cc69b4b..51ff5f2 100644 --- a/ui/twin/pbt-main.c +++ b/ui/twin/pbt-main.c @@ -27,15 +27,16 @@ void pbt_print_version(void) { - printf("pb-twin (" PACKAGE_NAME ") " PACKAGE_VERSION "\n"); + printf("petitboot-twin (" PACKAGE_NAME ") " PACKAGE_VERSION "\n"); } void pbt_print_usage(void) { pbt_print_version(); printf( -"Usage: pb-twin [-h, --help] [-l, --log log-file] [-r, --reset-defaults]\n" -" [-t, --timeout] [-V, --version] [[-f --fbdev] | [-x --x11]]\n"); +"Usage: petitboot-twin [-h, --help] [-l, --log log-file]\n" +" [-r, --reset-defaults][-t, --timeout] [-V, --version]" +" [[-f --fbdev] | [-x --x11]]\n"); } /** @@ -57,7 +58,7 @@ int pbt_opts_parse(struct pbt_opts *opts, int argc, char *argv[]) static const char short_options[] = "fhl:trVx"; static const struct pbt_opts default_values = { .backend = pbt_twin_x11, - .log_file = "pb-twin.log", + .log_file = "/var/log/petitboot/petitboot-twin.log", }; *opts = default_values; -- cgit v1.2.1