Made set_controller_command_byte() less verbose. It used to print a

debug message whenever one of lock keys were pressed, if the system
was started with the `-v' option.

Removed a couple of lines of dead code too.
This commit is contained in:
yokota 1997-03-07 10:22:55 +00:00
parent b5185bddfd
commit 79cdccb751
2 changed files with 4 additions and 12 deletions

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kbdio.c,v 1.8 1997/02/22 09:36:46 peter Exp $
* $Id: kbdio.c,v 1.9 1997/03/06 22:34:10 joerg Exp $
*/
#include "sc.h"
@ -1027,10 +1027,6 @@ set_controller_command_byte(KBDC p, int mask, int command)
return FALSE;
command = (kbdcp(p)->command_byte & ~mask) | (command & mask);
#if 0
if (command == kbdcp(p)->command_byte)
return TRUE;
#endif
if (command & KBD_DISABLE_KBD_PORT) {
if (!write_controller_command(p, KBDC_DISABLE_KBD_PORT))
return FALSE;
@ -1041,7 +1037,7 @@ set_controller_command_byte(KBDC p, int mask, int command)
return FALSE;
kbdcp(p)->command_byte = command;
if (verbose || bootverbose)
if (verbose)
log(LOG_DEBUG, "kbdio: new command byte:%04x (set_controller...)\n",
command);

View File

@ -26,7 +26,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: kbdio.c,v 1.8 1997/02/22 09:36:46 peter Exp $
* $Id: kbdio.c,v 1.9 1997/03/06 22:34:10 joerg Exp $
*/
#include "sc.h"
@ -1027,10 +1027,6 @@ set_controller_command_byte(KBDC p, int mask, int command)
return FALSE;
command = (kbdcp(p)->command_byte & ~mask) | (command & mask);
#if 0
if (command == kbdcp(p)->command_byte)
return TRUE;
#endif
if (command & KBD_DISABLE_KBD_PORT) {
if (!write_controller_command(p, KBDC_DISABLE_KBD_PORT))
return FALSE;
@ -1041,7 +1037,7 @@ set_controller_command_byte(KBDC p, int mask, int command)
return FALSE;
kbdcp(p)->command_byte = command;
if (verbose || bootverbose)
if (verbose)
log(LOG_DEBUG, "kbdio: new command byte:%04x (set_controller...)\n",
command);