Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3589299rdg; Tue, 17 Oct 2023 22:49:36 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEssjBD8yVMwDX5fhmRkTByvod7HxG+e9LaHSHwJ2M/BVpAQFJkG2bTVUjU0+2cEMUMzxnK X-Received: by 2002:a17:902:eb8b:b0:1c9:fb76:42f9 with SMTP id q11-20020a170902eb8b00b001c9fb7642f9mr4838868plg.69.1697608176126; Tue, 17 Oct 2023 22:49:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697608176; cv=none; d=google.com; s=arc-20160816; b=ZuvEnSJw45BxN1uvOge+9+ZhMFQR+MT10NiRZCJ+bpSE/TV5UiDCc9kFXj1waYfZeM hvaD7NcTFXZIHwiFtAEbAZsgywzlyg6iHvRuwf+O4WFVwCCW+DR/aDt5/HnSLR/ZKCP9 hzbgjicq+H5iKclWyLggjCArByXS8xTB3atNHjVCM7pneWL8hdql93hGWyX1lrZrhD0n jJJnOP+jZ7VTqIhconNqg3d9Ta/hZL3dliveKDov9MSJk+sIXNxpZdjs3Rl1hqCtHgBo FWjmR3zozbIKGaR1jDayyYGQfHQ2Gh3oRLn6YcqULQloZxOehxKhJpfygZ9qXbwElIhE ssTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=6UsnL94RoCPgeTX9ccivn8yeLwPhEKD4FoOoPKRV430=; fh=s6eu0vtygbLkFjUJ5yAoqjZcZX3LCT1qZ0AN/r0R5lk=; b=lt8eyBquWQ+gr9Vd3QTQL26emqYoOd1h6OxUM2Yr9dApwEHC3f07G/qOyxMMcgO9ay jLULLY4NFt2ABSxDJ0Tf48s4eiH/vLYl/XTUr5ObQe9HALjyy8i5sTbT3IRI2Paww92K vBw3gdQ3dLpcke5GeFJYnyBMSTgFbL0xso7fzO7hF+CKSQh/7L1PalMlaGsPIR9gKimV y3PuBWk+17AeVzAWlo0Rl6lEzt6khbPYlwtUZ9bqoovXrH+/BX4MA/DfMQlwJjouVDOx nZRJxcuKXDFtH7r+ZEJnNHRTfWlEBuTtG9XZ56veglb1FGwoJOuyWQM/NrcfB5iJdgvz /60g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=ZU7HGQjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from fry.vger.email (fry.vger.email. [2620:137:e000::3:8]) by mx.google.com with ESMTPS id z4-20020a170902708400b001c72dbaf7b9si3291917plk.415.2023.10.17.22.49.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 22:49:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) client-ip=2620:137:e000::3:8; Authentication-Results: mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=ZU7HGQjb; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:8 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by fry.vger.email (Postfix) with ESMTP id BB4AB80FCCBA; Tue, 17 Oct 2023 22:49:33 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at fry.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229594AbjJRFt1 (ORCPT + 99 others); Wed, 18 Oct 2023 01:49:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48280 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229517AbjJRFt0 (ORCPT ); Wed, 18 Oct 2023 01:49:26 -0400 Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01329BA for ; Tue, 17 Oct 2023 22:49:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=inria.fr; s=dc; h=date:from:to:cc:subject:in-reply-to:message-id: references:mime-version; bh=6UsnL94RoCPgeTX9ccivn8yeLwPhEKD4FoOoPKRV430=; b=ZU7HGQjbE8tnfSJZSD2Jp1UwDXjoEi8OiEjyY1hZihrJ6bz4RgD7QSk3 GTFUT1O4HHTuCKKtkWO7KDnWIhBwBFDfUC5cEKCqdiJWu5VuHC5vzVZpO HVrJlKGX6u62byQfMcQaL1spy0x5tkSip0IchcY/c5KLk+coPaT4gDTYY k=; Authentication-Results: mail3-relais-sop.national.inria.fr; dkim=none (message not signed) header.i=none; spf=SoftFail smtp.mailfrom=julia.lawall@inria.fr; dmarc=fail (p=none dis=none) d=inria.fr X-IronPort-AV: E=Sophos;i="6.03,234,1694728800"; d="scan'208";a="69015402" Received: from unknown (HELO hadrien) ([87.129.180.234]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 07:49:23 +0200 Date: Wed, 18 Oct 2023 07:49:22 +0200 (CEST) From: Julia Lawall To: Soumya Negi 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 In-Reply-To: Message-ID: <85af8b2d-6246-46c5-c6dc-582807010fa@inria.fr> References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-0.8 required=5.0 tests=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 fry.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 (fry.vger.email [0.0.0.0]); Tue, 17 Oct 2023 22:49:34 -0700 (PDT) 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 > > 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 > > >