| Newsgroups |
gmane.comp.emulators.hercules390.general |
| Message-ID |
<[email protected]> |
Aaron Finerman wrote:
> Hi, Anyway to avoid the message 'Switching from Fast
> to Slow polling' and vice versa? My Hercules console
> gets flooded with this message.
Define "flooded".
With SDL-Hyperion 4.2 you will see message HHC02917I appear periodically during normal operation (most typically when a tn3270 client is first connected and at the start and end of a IND$FILE transfer), but you should certainly NOT be "flooded" with such messages.
Yes, I agree it is annoying to be constantly seeing them appear over and over again during normal operation, which is why I committed a change to suppress them during normal operation and only display them if "msglevel debug" is active.
Unfortunately however, this fix was made *after* 4.2 was already released, so it's of course not in 4.2. (But it *will* obviously be in the next release.)
If you're able (or willing) to build Hercules for yourself, here's the patch:
diff --git a/console.c b/console.c
index 871459c4..53ba0fa1 100644
--- a/console.c
+++ b/console.c
@@ -3248,9 +3248,10 @@ static void calcto() // (calculate timeout)
timeval_subtract( &previo, &currio, &diffio );
timeout = (diffio.tv_sec > 0 || diffio.tv_usec > 100000) ?
&slowpoll : &fastpoll;
- if (timeout != prev_timeout)
- WRMSG( HHC02917, "I", &slowpoll == prev_timeout ?
- "slow to FAST" : "FAST to slow" );
+ if (MLVL( DEBUG ))
+ if (timeout != prev_timeout)
+ WRMSG( HHC02917, "D", &slowpoll == prev_timeout ?
+ "slow to FAST" : "FAST to slow" );
}
static void consio() // (console read)
--
"Fish" (David B. Trout)
Software Development Laboratories
http://www.softdevlabs.com
mail: [email protected]