Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3643426imm; Mon, 18 Jun 2018 01:25:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJkhIgQzJIcIv90z+vJkyYzv+ufHH63zsr0hZUVl3GnW3eGxlDfS2bL/OXtSo9kfqbQYQCR X-Received: by 2002:a62:d8c5:: with SMTP id e188-v6mr12347379pfg.151.1529310347432; Mon, 18 Jun 2018 01:25:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529310347; cv=none; d=google.com; s=arc-20160816; b=VQS28AOohii1tkuyPVynUP6PNyM/aatEziFkHiA0ymtZI70TUrgQaMsr74FgW2fHvd gkS16dN0DFO7wzusYPpSAgWEyZ0MZOcojV9oSbArKJmOZqlA0HchtgBvJLert0yQpAEj FnfPMM6YexfykZDt5qqQhWkiC9GIwXuWTCx9qPX2bTdldrZzXbKZC61YwhKIhid3XI1B r90n/9XjCRtvXzEQ6pZS6qCVMZ+1kPqChjAzGzqlEk7G681mUfb3u4QDBEiPPM4eqOm2 s2F05stjJ8EJxqGF1BFXqciUXkHhPzPrVoNs3BW4ptADL2JQ5xrPv2PGBEMnx3gxbw4R siFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=0YrcFExcCUP3sjp8PUciCgEjyL1nF98pgEI/1k6KAPI=; b=JHkAv8/5XzlE1p6GZfiVqNtU/1UVUScv6TG7PxKCsoHXyQcviY72jbJfNKsHyuEeoU njbcLlKEAfVdGK0SFoaRNIu9EtmTqFcnulAtFMOYLgT7MX83Men1851Z1XzvJ2JvbyxZ YZbTGpW6mWEk5OMIYox3aHSAXktqueZts9wc2b8eaIdZHojIbd51tbA0GOmC0jtIxSSE J7M1YwomyVENdissuAF5QxMldiQer+H8AWvwZZCtdC0U/NFenHGguafSGywIwWoXZ7bG nLKa/MlgJjeyCfL4jKsY2fNewFwK9WoDuWa7PmLle0fMXaqdk04FumbMTnzHb1UfjoLI Lphw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v22-v6si13941491ply.328.2018.06.18.01.25.33; Mon, 18 Jun 2018 01:25:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936354AbeFRIY5 (ORCPT + 99 others); Mon, 18 Jun 2018 04:24:57 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56130 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S936245AbeFRIYy (ORCPT ); Mon, 18 Jun 2018 04:24:54 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 59FF7BAD; Mon, 18 Jun 2018 08:24:53 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Jakob Unterwurzacher , linux-can@vger.kernel.org, Marc Kleine-Budde , Sasha Levin Subject: [PATCH 4.16 205/279] can: dev: increase bus-off message severity Date: Mon, 18 Jun 2018 10:13:10 +0200 Message-Id: <20180618080617.377689638@linuxfoundation.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20180618080608.851973560@linuxfoundation.org> References: <20180618080608.851973560@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Jakob Unterwurzacher [ Upstream commit 71c23a821c6bcacba71a094efe49ee689605906b ] bus-off is usually caused by hardware malfunction or configuration error (baud rate mismatch) and causes a complete loss of communication. Increase the "bus-off" message's severity from netdev_dbg() to netdev_info() to make it visible to the user. A can interface going into bus-off is similar in severity to ethernet's "Link is Down" message, which is also printed at info level. It is debatable whether the the "restarted" message should also be changed to netdev_info() to make the interface state changes comprehensible from the kernel log. I have chosen to keep the "restarted" message at dbg for now as the "bus-off" message should be enough for the user to notice and investigate the problem. Signed-off-by: Jakob Unterwurzacher Cc: linux-can@vger.kernel.org Cc: linux-kernel@vger.kernel.org Signed-off-by: Marc Kleine-Budde Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/net/can/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/net/can/dev.c +++ b/drivers/net/can/dev.c @@ -605,7 +605,7 @@ void can_bus_off(struct net_device *dev) { struct can_priv *priv = netdev_priv(dev); - netdev_dbg(dev, "bus-off\n"); + netdev_info(dev, "bus-off\n"); netif_carrier_off(dev);