Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1543870 > unrolled thread

Re: [PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning errors

Started byDmitry Torokhov <dmitry.torokhov@gmail.com>
First post2016-12-17 02:00 +0100
Last post2016-12-17 02:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning  errors Dmitry Torokhov <dmitry.torokhov@gmail.com> - 2016-12-17 02:00 +0100

#1543870 — Re: [PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning errors

FromDmitry Torokhov <dmitry.torokhov@gmail.com>
Date2016-12-17 02:00 +0100
SubjectRe: [PATCH 2/2] Input: i8042 - change dbg to pr_warn when returning errors
Message-ID<sPbw3-2nR-15@gated-at.bofh.it>
Hi Marcos,

On Tue, Dec 06, 2016 at 09:44:55PM -0200, Marcos Paulo de Souza wrote:
> Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
> ---
>  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;

No, we expect this to fail on some systems (that is the whole point of
testing using the LOOP command to verify that AUX port is there and is
wired properly), so we should not be issuing warnings - the system way
very well be functioning properly.

dbg() is always there, so just rerun the boot with i8042.debug and get
all the trace needed.

Thanks.

-- 
Dmitry

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web