diff options
author | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-18 12:57:54 +0000 |
---|---|---|
committer | Jordan K. Hubbard <jkh@FreeBSD.org> | 1995-05-18 12:57:54 +0000 |
commit | ab9357a91043e51a89970127f08e96fa5dd9590c (patch) | |
tree | 996dba93ed91866b9da12356e42128fdb28b41ed /release/sysinstall | |
parent | 2c3b28f96d6b29a0b13338a213ac77c4ce397c44 (diff) |
Also log all user interactions to debugging log.
Notes
Notes:
svn path=/head/; revision=8594
Diffstat (limited to 'release/sysinstall')
-rw-r--r-- | release/sysinstall/msg.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/release/sysinstall/msg.c b/release/sysinstall/msg.c index b861f12d888e..2fc05f087b46 100644 --- a/release/sysinstall/msg.c +++ b/release/sysinstall/msg.c @@ -4,7 +4,7 @@ * This is probably the last program in the `sysinstall' line - the next * generation being essentially a complete rewrite. * - * $Id: msg.c,v 1.10 1995/05/11 06:10:56 jkh Exp $ + * $Id: msg.c,v 1.11 1995/05/16 11:37:23 jkh Exp $ * * Copyright (c) 1995 * Jordan Hubbard. All rights reserved. @@ -189,6 +189,7 @@ msgNotify(char *fmt, ...) va_end(args); use_helpline(NULL); use_helpfile(NULL); + msgDebug("%s\n", errstr); w = dupwin(newscr); dialog_msgbox("Information Dialog", errstr, -1, -1, 0); touchwin(w); @@ -217,6 +218,7 @@ msgYesNo(char *fmt, ...) touchwin(w); wrefresh(w); delwin(w); + msgDebug("User answers %s to \"%s\"\n", ret ? "no" : "yes", errstr); free(errstr); return ret; } @@ -246,6 +248,7 @@ msgGetInput(char *buf, char *fmt, ...) touchwin(w); wrefresh(w); delwin(w); + msgDebug("input request \"%s\" returns %d status", errstr, rval); free(errstr); if (!rval) return input_buffer; @@ -260,6 +263,8 @@ msgDebug(char *fmt, ...) va_list args; char *dbg; + if (DebugFD == -1) + return; dbg = (char *)safe_malloc(FILENAME_MAX); strcpy(dbg, "DEBUG: "); va_start(args, fmt); |