Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3595509rdg; Tue, 17 Oct 2023 23:07:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IG4yd2DxGjhLiL9sqlBEwYk+UMRyvtOQw3TIYq07TgKKrg75v9s5LLMJYANnUAdvGeQJT0Y X-Received: by 2002:a05:6a20:6e0f:b0:166:ef18:658e with SMTP id go15-20020a056a206e0f00b00166ef18658emr3146842pzb.62.1697609224408; Tue, 17 Oct 2023 23:07:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697609224; cv=none; d=google.com; s=arc-20160816; b=fCtI4Ea3z1+LyEdN6LWKj6OG0ljcttno11kx+xm+ZJBdQR2MLAdTPsFjmJLAmJp7g9 1WUmnpncH+EDWya510A+dWNw1mUCJU6nDOV4gyNeou2g63Q01Wwx+TFP3g4EeuitPLgc bZoBXmhwege3iYWceOBkm/GDHkdzbFKLs5lb9jC3kCxEjiqn6Xb3iPvbuTjskzj9bS1N Jk7LsKZ0eovDBD49tUYfwLZ3axH9jz1ZftDZnCJl+vy7WIFb645D8vPBN6pKgSdmesKz 2cHwauUKu/HBTruYgxaEpRCv8JjU+1on1ZEdXWcYzeENIo02L3E+/nIooLMaO7BBMehz 3RVw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=0V5q09wBAssZNTSnPI9VwZLnGSrKz4v21dohqlLwCKM=; fh=brt22qK6YnaxzTAypLBpCky+FJurVzcqXii1PYxJ64k=; b=qgL5I4dQ5b8KJN889hwcHG/czUukmBc74cqIs5QJVNsePOXeW/js8KkozEWCW8zp04 8Zvi0tWPeD+D0Lkjqr/8Eecjj7c9fppU6YpImkemukT2I3THoJXyZ3vZEG62MB+AbE62 JUkYCPlOQMuFIZehpUvStUBZlc4Zb9r6Q0BRVjclaixvJ6+86umpB9/JHas6dOY+zDfi fLyZy8KnUyvUCaqF0j0xrsnOyqTkiIelreZKR/r9rL5k9MEb+1AdVoOjIrVEfyxeqqxl ZxRfG79cqWCLsw1jjPtlsgXgodCNFOQXJyYwlnkYquk8fzlLLB/7aki2hgJ3lWirHNWO a8dQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mnKOEYmi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id w67-20020a636246000000b00578c914490bsi1478350pgb.494.2023.10.17.23.07.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:07:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=mnKOEYmi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BC21B8038DBA; Tue, 17 Oct 2023 23:07:01 -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 S229613AbjJRGGv (ORCPT + 99 others); Wed, 18 Oct 2023 02:06:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229595AbjJRGGu (ORCPT ); Wed, 18 Oct 2023 02:06:50 -0400 Received: from mail-pf1-x434.google.com (mail-pf1-x434.google.com [IPv6:2607:f8b0:4864:20::434]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC54EC6 for ; Tue, 17 Oct 2023 23:06:48 -0700 (PDT) Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-6934202b8bdso5614072b3a.1 for ; Tue, 17 Oct 2023 23:06:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697609208; x=1698214008; darn=vger.kernel.org; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=0V5q09wBAssZNTSnPI9VwZLnGSrKz4v21dohqlLwCKM=; b=mnKOEYmiF9debi5oF1gSgKeDC6c91xCYAdSo/2+R7Zs2uO1OnpDRu32lqz3qjGSGTr 4ICQc5D0v+RDKsXCMhtLHkubemGa+aINkRPIuoah53xow2zhJ/+D1q7E/9KA4nApWHKO 5hCm+ZDKZT13pTP2ojmQJBOk8SyfeKtNOSsoEoRN/gmgxzhwYwgC8vzLLxdrH/v1lRc+ rwAjboPP9pzJhi7VGlME/kWvD9PwoAmht4qXQ6vlHoj4HJfj7vHAe///F59ycPO4nqZ8 I78pSQeGLF5KpRWt3HYCTBDag/y3vGBl5K/TvR5jkmf5O34feL0iUkTMdiXoF0ayuk+/ yjUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697609208; x=1698214008; h=user-agent:in-reply-to:content-disposition:mime-version:references :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=0V5q09wBAssZNTSnPI9VwZLnGSrKz4v21dohqlLwCKM=; b=qEoSZbXqT0MKZjrctkC1IVyuKHe0LqK3VTM6COx2dMM3PHFui4S37Ir8CPFnKSc7Kc 4znkILJ/NlddRm3m9SofOYtLRJzryqqO6LxoJTeoCzOCfz95DIlhht81MVrly35aDfrE iMWr1cCcvYtzVHypiaLVsabXfJuH1a2YJv2ELxq0AIBm9Sd8DVYpobrMrlxTiPDOk2rJ 8lMavyg7f6U2cfi6feD4ty1nYF8Ol/pbQMD38HA/cbDsQyRVvwOT/zve66uO5wdTMhjR klGXbTvnb1/gPnHrOrCavhVjsLCDVSiuzjaqqa0541x90phnf+4uLc3SqcQsNLz7AdlK BiWw== X-Gm-Message-State: AOJu0YzZu7eX7Toq0p03UOJipBHoP35uZbx/Zm2hiy6vVATZAiNmq+qM 6XY/dKIo2AMzk0yYqACzwlc= X-Received: by 2002:a05:6a00:15c4:b0:68f:f741:57a1 with SMTP id o4-20020a056a0015c400b0068ff74157a1mr5520627pfu.7.1697609208349; Tue, 17 Oct 2023 23:06:48 -0700 (PDT) Received: from Negi ([68.181.16.134]) by smtp.gmail.com with ESMTPSA id e10-20020aa7980a000000b00690c52267easm2470087pfl.40.2023.10.17.23.06.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:06:47 -0700 (PDT) Date: Tue, 17 Oct 2023 23:06:46 -0700 From: Soumya Negi To: Julia Lawall Cc: Martyn Welch , Manohar Vanga , Greg Kroah-Hartman , outreachy@lists.linux.dev, linux-kernel@vger.kernel.org, linux-staging@lists.linux.dev Subject: Re: [PATCH 0/2] staging: vme_user: Replace printk's & cleanup log messages Message-ID: <20231018060646.GA1868@Negi> References: <85af8b2d-6246-46c5-c6dc-582807010fa@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <85af8b2d-6246-46c5-c6dc-582807010fa@inria.fr> User-Agent: Mutt/1.9.4 (2018-02-28) X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, 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]); Tue, 17 Oct 2023 23:07:02 -0700 (PDT) On Wed, Oct 18, 2023 at 07:49:22AM +0200, Julia Lawall wrote: > > > On Tue, 17 Oct 2023, Soumya Negi wrote: > > > Staging driver vme_user has a bunch of printk() calls in vme.c which > > triggers checkpatch warnings. Remove all printk's and change them to > > the appropriate logging mechanism i.e pr_err()/pr_warn(), or > > dev_err()/dev_warn(). > > > > Also, cleanup the messages further by using __func__ in the string > > instead of function names. > > "cleanup" is not actually a verb. It's a noun. The verb would be clean > up. > > julia > Hi Julia, Will update the commit log. Tanks, Soumya > > > > This patchset fixes all checkpatch warnings like: > > > > WARNING: Prefer [subsystem eg: netdev]_err([subsystem]dev, ... then > > dev_err(dev, ... then pr_err(... to printk(KERN_ERR ... > > & > > WARNING: Prefer using '"%s...", __func__' to using 'vme_lm_get', > > this function's name, in a string > > > > Patches must be applied in order. > > > > Soumya Negi (2): > > staging: vme_user: Replace printk() with pr_*(),dev_*() > > staging: vme_user: Use __func__ instead of function name > > > > drivers/staging/vme_user/vme.c | 175 ++++++++++++++++++--------------- > > 1 file changed, 94 insertions(+), 81 deletions(-) > > > > -- > > 2.42.0 > > > > > >