disable "Last message repeated...". This was causing problems with qstat etc and

also with other output in general.
This commit is contained in:
Bill Currie 2000-10-02 03:31:52 +00:00
parent a88dc7371c
commit 21ff288d88
3 changed files with 34 additions and 22 deletions

View file

@ -98,8 +98,10 @@ void Sys_Printf (char *fmt, ...)
{
va_list argptr;
char msg[MAXPRINTMSG];
#if 0
static char lastmessage[MAXPRINTMSG];
static int msgcount=0;
#endif
unsigned char *p;
if (sys_nostdout->value) return;
@ -108,14 +110,16 @@ void Sys_Printf (char *fmt, ...)
vsnprintf(msg, sizeof(msg), fmt, argptr);
va_end(argptr);
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
#if 0
if (strncmp(lastmessage,msg,MAXPRINTMSG)==0) {
msgcount+=1;
return;
} else {
if (msgcount>0) printf("Last message repeated %d times\n",msgcount);
strncpy(lastmessage,msg,MAXPRINTMSG);
msgcount=0;
}
} else {
if (msgcount>0) printf("Last message repeated %d times\n",msgcount);
strncpy(lastmessage,msg,MAXPRINTMSG);
msgcount=0;
}
#endif
/* translate to ASCII instead of printing [xx] --KB */
for (p = (unsigned char *)msg; *p; p++)