Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3795469rdg; Wed, 18 Oct 2023 06:26:32 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGVCwdwnIU96IIK02CXHxakr7k9LhjTrNseMw1lJZ/m+1YyzaGb8AK+Bs7imKfzoK9E7Tw8 X-Received: by 2002:a05:6871:b20:b0:1e9:8780:a0e with SMTP id fq32-20020a0568710b2000b001e987800a0emr6206580oab.28.1697635591925; Wed, 18 Oct 2023 06:26:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697635591; cv=none; d=google.com; s=arc-20160816; b=BQGh8N7s52T43AOuSoPuxeHFbtV3NtfDX6arBFWl0oH3ODK4e0nUmEgB9O0tVGBYux XsncH55q1viKO6l8ExhQPvB3ToV7q9u5Ud6u+KIxUMnbNCvUQMBlxzzWOcCPWWa752aq d3LYMO/iCkuThN+Hi+5KBcGW8ZYT2XGail3Eb7usLbc2q8auxzbjZHsJ9XVS1HvPkT/j KRDdrFLwqkaC0JFFBUPWGFY3nOrT1989+H0FDYjBCSAcbsjg7S1s+TNY0BYRwsez3FRc sBfEjC96c2ZvXokO7YK1qKiEIwAzupFK2/N1NyNxjtQMY2+CYzzwMj5GoRWOtQFauJNx lkYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=ndGXrm2+lMaEVXSd935K0VJcTC7cpA/65ZpiVEtn3+M=; fh=Mkqd68rbVqYqMGREMkDZFpnJu8JA+iQ8yVnpR5knIGI=; b=fdEinKXV5EOBgqjr73SYjEi8e+pRdKV6qoceJLT/ngjfWmUT0aGhFLa70vT55wtfia ReYKyHMB8ivR00WCaJohpSUUuAeh8lgrWIn0h61Ud6JIaSRjvmCtC812cG41hlWt5gRM /sG4Ere7fej3NTZDbah2n1bSNyMyxGJ06515DAEQ+DD+48PL0NHtt8QwRygq3v0ru9Fq /N0qIwe36gqOVAHiWYrq0VT+Pjzsn8ZnIx1HxWKN4SUuSL6nV1+kh+8Cy4He5vhR3bRX qEwByLrJYdcw1JDxKhMhuoxhslvMJH3Q91MeAlcQ00C/BhsDZKvjUJ1GhN3sYrnXNH9s IPLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wGTnNf+Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id s17-20020a656451000000b005891f742957si2158543pgv.570.2023.10.18.06.26.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 06:26:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wGTnNf+Y; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 0312180A49B9; Wed, 18 Oct 2023 06:26:29 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231656AbjJRN0V (ORCPT + 99 others); Wed, 18 Oct 2023 09:26:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51644 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231614AbjJRN0Q (ORCPT ); Wed, 18 Oct 2023 09:26:16 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D6044138 for ; Wed, 18 Oct 2023 06:26:13 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 12588C433C7; Wed, 18 Oct 2023 13:26:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697635573; bh=QibHFyUe/EPNDDhU4KtzbtUNy6mOEodj9TioLZzQ+ag=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=wGTnNf+Ys3HVCRBatDeBspYArhSkDCQq/SJ9wJ9HoGw7Id72lDTvgas8JTPUmzkHY vA6bz2PyxeGX2TfoNQmOtqtKhXx31EXv9XE/UYesjYil0+FT8Gxe0Mvko+fb1ILgK3 NfsPThfMoOw2dFebarl11b1szGByIC4w0Ksvn8ao= Date: Wed, 18 Oct 2023 15:26:07 +0200 From: Greg Kroah-Hartman To: Soumya Negi Cc: Martyn Welch , Manohar Vanga , outreachy@lists.linux.dev, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH 1/2] staging: vme_user: Replace printk() with pr_*(),dev_*() Message-ID: <2023101823-unhidden-draw-d68c@gregkh> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Wed, 18 Oct 2023 06:26:29 -0700 (PDT) On Tue, Oct 17, 2023 at 09:36:32PM -0700, Soumya Negi wrote: > vme.c uses printk() to log messages. To improve and standardize message > formatting, use logging mechanisms pr_err()/pr_warn() and > dev_err()/dev_warn() instead. Retain the printk log levels of the > messages during replacement. > > Issue found by checkpatch.pl > > Signed-off-by: Soumya Negi > --- > drivers/staging/vme_user/vme.c | 175 ++++++++++++++++++--------------- > 1 file changed, 94 insertions(+), 81 deletions(-) > > diff --git a/drivers/staging/vme_user/vme.c b/drivers/staging/vme_user/vme.c > index 6519a7c994a0..e8c2c1e77b7d 100644 > --- a/drivers/staging/vme_user/vme.c > +++ b/drivers/staging/vme_user/vme.c > @@ -9,6 +9,8 @@ > * Copyright 2004 Motorola Inc. > */ > > +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt No, this is a driver, as others have pointed out, always use dev_*() calls instead. Yes, that means that sometimes you do need to propagate the proper device to the function, but that's ok, it's the correct solution here. thanks, greg k-h