@@ -82,7 +82,7 @@ void init_keyboard(uint8_t dst_cpus) {
8282
8383 dual_channel = current_status .clock2 == 0 ? 1 : 0 ; /* second channel enabled if 0 */
8484
85- printk ("Current PS/2 status before: %x\n" , current_status .config );
85+ dprintk ("Current PS/2 status before: %x\n" , current_status .config );
8686
8787 /* Disable IRQs and translation */
8888 current_status .port1_int = 0 ;
@@ -93,8 +93,8 @@ void init_keyboard(uint8_t dst_cpus) {
9393 outb (KEYBOARD_PORT_CMD , KEYBOARD_CMD_WRITE_CONFIGURATION );
9494 outb (KEYBOARD_PORT_DATA , current_status .config );
9595
96- printk ("Current PS/2 status after mods: %x\n" , current_status .config );
97- printk ("PS/2 dual channel? %d\n" , dual_channel );
96+ dprintk ("Current PS/2 status after mods: %x\n" , current_status .config );
97+ dprintk ("PS/2 dual channel? %d\n" , dual_channel );
9898
9999 /* Controller self test */
100100 outb (KEYBOARD_PORT_CMD , KEYBOARD_CMD_SELF_TEST );
@@ -122,15 +122,15 @@ void init_keyboard(uint8_t dst_cpus) {
122122 port2 = inb (KEYBOARD_PORT_DATA ) == 0 ? 1 : 0 ;
123123 }
124124
125- printk ("Port1 available? %d - port2 available? %d\n" , port1 , port2 );
125+ dprintk ("Port1 available? %d - port2 available? %d\n" , port1 , port2 );
126126 if (!port1 && !port2 ) {
127127 printk ("No available PS/2 working ports\n" );
128128 return ;
129129 }
130130
131131 /* Enable devices */
132132 if (port1 ) {
133- printk ("Keyboard: enabling first channel\n" );
133+ dprintk ("Keyboard: enabling first channel\n" );
134134 current_status .port1_int = 1 ;
135135 current_status .clock2 = 1 ; /* disable second port clock */
136136 current_status .translation = 1 ;
@@ -142,7 +142,7 @@ void init_keyboard(uint8_t dst_cpus) {
142142 outb (KEYBOARD_PORT_CMD , KEYBOARD_CMD_ENABLE_PORT_1 );
143143 }
144144 else {
145- printk ("Keyboard: enabling second channel\n" );
145+ dprintk ("Keyboard: enabling second channel\n" );
146146 current_status .port2_int = 1 ;
147147 outb (KEYBOARD_PORT_CMD , KEYBOARD_CMD_WRITE_CONFIGURATION );
148148 outb (KEYBOARD_PORT_DATA , current_status .config );
0 commit comments