Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp4149605iog; Tue, 28 Jun 2022 10:00:31 -0700 (PDT) X-Google-Smtp-Source: AGRyM1viWiq5vxwHB9rAxdOZ6duhAkivmdPoOMrjtdI3NjhdlZhiZYUOnuRDBX+zFBvZAKTIknQs X-Received: by 2002:a17:90b:3cd:b0:1ec:a6a0:9c1b with SMTP id go13-20020a17090b03cd00b001eca6a09c1bmr599947pjb.215.1656435631453; Tue, 28 Jun 2022 10:00:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1656435631; cv=none; d=google.com; s=arc-20160816; b=QuwD9ROgwWlamC9FJlUL63PUhWLiJT8DdvuTAKrAwxIaZHEhFHbj1cOXbptf4YkxVp KN7b3WNrV1QmKYTs4R2HrYsVvrKeiJPmAsJox/X8yHNZ9yNhKRAZ6M+P0lrfZxkHX0Vd r71BDduA4RcpZFCG1EhMwcfz3fl2rKgvxwjISB1rANQzt8uA2egDf8H7mleqyLwjXHkx ZHJc+4Rahn+GxlOYNUX7KNmlvsYDOs2OyoXKnJEwmVwZUr2s8AWSFwdFXsEBdH3UpaAi KZm5c7VI72IZ7m3cTiHv1Lew7XtTR7UMAgvaRhWQwFRHo6udP+zjw2hRYMlkf7h+ISz3 UMeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=El3W9x0OB1VE70B0Lt3SBVyO+pC/HDeoL5aPqYtLRdg=; b=IlyksVoEbnxaJz4H5in7xrrhWVa3czeQ71TeYVmXPDiC95OD/1t0LD+sXN38zjuT6U Ttc+CckwDGf9GAruAx8rHHyg/+S4WHF58JXhUuAvEpeNZ7RlrsRKbCDQM5P/A8Qxrzqe PqK/DKTTQcHjEMc68RCZXm+KGyULqcMVi5DsDLB/HwecWg+RNZoHESKFlgJtgwWoY4Zj LFQigJSJbsHkvA2nAQzPCuVwXfvL3i+FUGXOJYa5EUR1VZp42ObvPFombwhuEpQ2Kve0 90/l99+vu5RAcWS52NpElc8O62YS5PBOnfPxpZQ0a2SUMp92CzZj2vU/PE7i8R9wvR0c xnKw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="npVyrA+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g4-20020a17090a9b8400b001d9752b43absi101180pjp.137.2022.06.28.10.00.17; Tue, 28 Jun 2022 10:00:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b="npVyrA+/"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=amarulasolutions.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237348AbiF1QgD (ORCPT + 99 others); Tue, 28 Jun 2022 12:36:03 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52520 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237975AbiF1Qeq (ORCPT ); Tue, 28 Jun 2022 12:34:46 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1E5793206C for ; Tue, 28 Jun 2022 09:31:52 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id d2so15169658ejy.1 for ; Tue, 28 Jun 2022 09:31:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=El3W9x0OB1VE70B0Lt3SBVyO+pC/HDeoL5aPqYtLRdg=; b=npVyrA+/Jxlq6fQfSTCBYtF6RmczZxbWUN+tD+OAYyplLmUOvHpooBMDuJlKKO4PZJ yCZoY4jC/PAH7YPpacPIeDx58jw6tAJqfpGJC8HRQ+q5j8M0r5LiiQuEpXcF8XKwWMq+ JsMRX/RrrOZLybaPcnDecKT1rm1MJeKuhH3vY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=El3W9x0OB1VE70B0Lt3SBVyO+pC/HDeoL5aPqYtLRdg=; b=nXd41m90JQ8SPaURkfv4LGVYL5d0sgVh1rOrLmjsPzgTOX1VhRa99lwTnNFf9v0fW7 1skh5wUXasnfyU07TK9vdbBO8VehEx9/tjguW8r9mLlrUMZ9s4xxPzLeaJDWhWt507vm PdyLxIHUnenIw86k6frSE6s/2QUNe3Qikf+ddJc2ni7pLK71Yx3OT4VQLdwPwZRNlOiI kvNuSwmUhIbxZF/k0yYPOETgCFm5VRVSqzGDc04QCUrWY07MdlTltoKLzXzPS868TG3V 3HAU8e1oWhlS/f3tFFsscF8zh2UEqob7d09PqUI8TaUi7uH9S9CobaYL4UQSkftcBOgW FT+Q== X-Gm-Message-State: AJIora+0E9NUvSn7meE68BJ11Q0r6k2jxO8JKCJgsFa2TsYy0TBmRjtm BRdunqfIYJT/BEFBZr24cxSezqHhPrCs3A== X-Received: by 2002:a17:907:7e90:b0:704:b67d:623e with SMTP id qb16-20020a1709077e9000b00704b67d623emr19098655ejc.634.1656433910961; Tue, 28 Jun 2022 09:31:50 -0700 (PDT) Received: from dario-ThinkPad-T14s-Gen-2i.homenet.telecomitalia.it (host-80-116-90-174.pool80116.interbusiness.it. [80.116.90.174]) by smtp.gmail.com with ESMTPSA id b20-20020a0564021f1400b0042e15364d14sm9916952edb.8.2022.06.28.09.31.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 28 Jun 2022 09:31:50 -0700 (PDT) From: Dario Binacchi To: linux-kernel@vger.kernel.org Cc: michael@amarulasolutions.com, Amarula patchwork , Oliver Hartkopp , Dario Binacchi , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Marc Kleine-Budde , Paolo Abeni , Wolfgang Grandegger , linux-can@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v5 02/12] can: slcan: use netdev helpers to print out messages Date: Tue, 28 Jun 2022 18:31:26 +0200 Message-Id: <20220628163137.413025-3-dario.binacchi@amarulasolutions.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20220628163137.413025-1-dario.binacchi@amarulasolutions.com> References: <20220628163137.413025-1-dario.binacchi@amarulasolutions.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace printk() calls with corresponding netdev helpers. Signed-off-by: Dario Binacchi --- (no changes since v1) drivers/net/can/slcan.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/can/slcan.c b/drivers/net/can/slcan.c index b37d35c2a23a..6162a9c21672 100644 --- a/drivers/net/can/slcan.c +++ b/drivers/net/can/slcan.c @@ -365,7 +365,7 @@ static netdev_tx_t slc_xmit(struct sk_buff *skb, struct net_device *dev) spin_lock(&sl->lock); if (!netif_running(dev)) { spin_unlock(&sl->lock); - printk(KERN_WARNING "%s: xmit: iface is down\n", dev->name); + netdev_warn(dev, "xmit: iface is down\n"); goto out; } if (sl->tty == NULL) { @@ -776,8 +776,7 @@ static void __exit slcan_exit(void) sl = netdev_priv(dev); if (sl->tty) { - printk(KERN_ERR "%s: tty discipline still running\n", - dev->name); + netdev_err(dev, "tty discipline still running\n"); } unregister_netdev(dev); -- 2.32.0