summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/msg.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-05-18 12:57:54 +0000
committerjkh <jkh@FreeBSD.org>1995-05-18 12:57:54 +0000
commit4e5ffffc8be366aec8f4334e93338b19babcb403 (patch)
tree996dba93ed91866b9da12356e42128fdb28b41ed /usr.sbin/sysinstall/msg.c
parent515b1b92e46e81da53ba6f93797b0ac52b3be471 (diff)
downloadFreeBSD-src-4e5ffffc8be366aec8f4334e93338b19babcb403.zip
FreeBSD-src-4e5ffffc8be366aec8f4334e93338b19babcb403.tar.gz
Also log all user interactions to debugging log.
Diffstat (limited to 'usr.sbin/sysinstall/msg.c')
-rw-r--r--usr.sbin/sysinstall/msg.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/msg.c b/usr.sbin/sysinstall/msg.c
index b861f12..2fc05f0 100644
--- a/usr.sbin/sysinstall/msg.c
+++ b/usr.sbin/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);
OpenPOWER on IntegriCloud