Also log all user interactions to debugging log.
This commit is contained in:
parent
2c3b28f96d
commit
ab9357a910
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user