Received: by 2002:a05:7412:f690:b0:e2:908c:2ebd with SMTP id ej16csp437424rdb; Thu, 19 Oct 2023 08:34:21 -0700 (PDT) X-Google-Smtp-Source: AGHT+IE/vsZbM648L7tUHh5/vD3YuBtiOzNMQh8nHyPJ2SarfmWewmNXWtzCGoiP0zzh4wiL+lIc X-Received: by 2002:a05:6a00:2d08:b0:6bd:b7c5:f776 with SMTP id fa8-20020a056a002d0800b006bdb7c5f776mr2476155pfb.8.1697729661057; Thu, 19 Oct 2023 08:34:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697729661; cv=none; d=google.com; s=arc-20160816; b=BMTBWBTKl+fKmbaYEuYXxL9wAqOHGWGFpca6xoQ9EHij4rN+oj7yQgbUuX6oGHDgj8 v3uSvoBNiAXbY2BSrxyGHIfD8m2rJD8HGlmJkKrPsdzftaxVMlMkIV3V+k/uMQeGpSOd N3jQGGrQxE1aHVGpK8R/+4ZzC2KMaT3JrPdS2xMN7eT8h9QUXIHP0X7JmzqFQVYb9E8C xf1tkQVwIsZc3vD/+uBdQaaArG63vBVS7yPb6v+LAvmgLFj5Q7t/e21pL3a2mYy51EMS lMT20A8wBsCVf+YFpWhRq+dHQsC+wL9GacbA1FXIC65BAMI3UJYFVsr9gWRhHv05D+5H KGbw== 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=iA/17toquOdW+7UiagDTsG8d286fMYnM9cYxscjnh1U=; fh=Mkqd68rbVqYqMGREMkDZFpnJu8JA+iQ8yVnpR5knIGI=; b=R45lAK9j9s4B22or/RgD2eYz45utlGXQJUAO1VRo1N1bphOSZddSW4deT148DTEhOe qTf98e+HiEenWkZO364DxvK70maVhToVdOjjCq9hasGpGMSrWjs0XWR6VlMZ4NpuYT3c 8PIaUKf5cFlsXOOIuzOix/OCtBd00KJjufWj7wPcWg26xvmerTKtL5VN+iB3eGrt26y0 Csc2QvZQByfVhy4ba2+UTm6gz6m4TU+4h9iDlCAjWRaR8YWjamWqOEGoL7U2VbynQ50i fx7AqLpXmKKCEKzAqzUdZT24w8eGwk/gqTNtMn2P1QQ8zYm1IfrsAhMeGgSF6YOaZ1oJ lkYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tKBv64mQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (morse.vger.email. [23.128.96.31]) by mx.google.com with ESMTPS id y185-20020a638ac2000000b005ab05858e70si4876722pgd.782.2023.10.19.08.34.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Oct 2023 08:34:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 as permitted sender) client-ip=23.128.96.31; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=tKBv64mQ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.31 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 morse.vger.email (Postfix) with ESMTP id F042783328CF; Thu, 19 Oct 2023 08:34:18 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at morse.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346321AbjJSPeN (ORCPT + 99 others); Thu, 19 Oct 2023 11:34:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46214 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346331AbjJSPeG (ORCPT ); Thu, 19 Oct 2023 11:34:06 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BB9D2196 for ; Thu, 19 Oct 2023 08:34:04 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 06E52C433CA; Thu, 19 Oct 2023 15:34:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1697729644; bh=654sFT0xu88VFa1zlsXNRsh5wpWB9hJtkm4F9iJpGLA=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tKBv64mQqGUlIugdH0YHyshgZ0xHaRCy71gNR6R+5GcbnFhfeu8+iqKJSALyxsuul PACcI+/OHGScAv4KHKJSeSsW3r580ZfHdzJ/eHC+iBo5UtNtd6FKLgxGtBlEB8QsZC onBb6pBoODe+hc4pHYHMB2tI4x9cHycuGJSC66Ps= Date: Thu, 19 Oct 2023 17:34:01 +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: <2023101925-kudos-playful-7c5a@gregkh> References: <2023101823-unhidden-draw-d68c@gregkh> <20231018193855.GA32553@Negi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231018193855.GA32553@Negi> 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 morse.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 (morse.vger.email [0.0.0.0]); Thu, 19 Oct 2023 08:34:19 -0700 (PDT) On Wed, Oct 18, 2023 at 12:38:56PM -0700, Soumya Negi wrote: > Hi Greg, > > On Wed, Oct 18, 2023 at 03:26:07PM +0200, Greg Kroah-Hartman wrote: > > 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. > > Some of the pr_ fns can be dev_, but I don't think all can. > e.g. device NULL-check error messages I would argue that those are pointless and can be removed and also the check is probably not needed either. > Also, there are portions of the driver where we have no access to > any 'struct device' to feed into dev_. Then you can fix that :) thanks, greg k-h