소스 검색

Staging: comedi: addi-data: convert printk() to dev_err()

This patch for hwdrv_apci035.c changes a printk() call to a dev_err() call
since this is generally preferred.  It also removes a newline from the start
of the error message.

Signed-off-by: Chase Southwood <chase.southwood@yahoo.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Chase Southwood 11 년 전
부모
커밋
6fcd2b697c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c

+ 1 - 1
drivers/staging/comedi/drivers/addi-data/hwdrv_apci035.c

@@ -227,7 +227,7 @@ static int i_APCI035_ConfigTimerWatchdog(struct comedi_device *dev,
 			ui_Command = ui_Command & 0xFFF819E2UL;
 			ui_Command = ui_Command & 0xFFF819E2UL;
 
 
 		} else {
 		} else {
-			printk("\n The parameter for Timer/watchdog selection is in error\n");
+			dev_err(dev->class_dev, "The parameter for Timer/watchdog selection is in error\n");
 			return -EINVAL;
 			return -EINVAL;
 		}
 		}
 	}
 	}