From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752379AbcLFXqK (ORCPT ); Tue, 6 Dec 2016 18:46:10 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:34855 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751696AbcLFXqG (ORCPT ); Tue, 6 Dec 2016 18:46:06 -0500 From: Marcos Paulo de Souza Cc: Marcos Paulo de Souza , Dmitry Torokhov , linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning errors Date: Tue, 6 Dec 2016 21:44:55 -0200 Message-Id: <20161206234531.4320-2-marcos.souza.org@gmail.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161206234531.4320-1-marcos.souza.org@gmail.com> References: <20161206234531.4320-1-marcos.souza.org@gmail.com> To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Signed-off-by: Marcos Paulo de Souza --- drivers/input/serio/i8042.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/input/serio/i8042.c b/drivers/input/serio/i8042.c index 1c70747..bc54ce5 100644 --- a/drivers/input/serio/i8042.c +++ b/drivers/input/serio/i8042.c @@ -323,13 +323,13 @@ static int __i8042_command(unsigned char *param, int command) for (i = 0; i < ((command >> 8) & 0xf); i++) { error = i8042_wait_read(); if (error) { - dbg(" -- i8042 (timeout)\n"); + pr_warn(" -- i8042 (timeout)\n"); return error; } if (command == I8042_CMD_AUX_LOOP && !(i8042_read_status() & I8042_STR_AUXDATA)) { - dbg(" -- i8042 (auxerr)\n"); + pr_warn(" -- i8042 (auxerr)\n"); return -1; } -- 2.9.3