Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3614260rdg; Wed, 18 Oct 2023 00:01:13 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGf9ukDXOKOYXiMRDkHsJ5Snu2s/XaHFFbkmmV5CpYXXX9KW2LBg2oyWhe1f/Zhlavyik9p X-Received: by 2002:a05:6808:3a8a:b0:3ae:18c0:dd8e with SMTP id fb10-20020a0568083a8a00b003ae18c0dd8emr4411138oib.27.1697612472697; Wed, 18 Oct 2023 00:01:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697612472; cv=none; d=google.com; s=arc-20160816; b=VMWcy/ksQA34QgvjlTPahIxDeO0wTsPACUMS3OSdXZoE5fzprmL2dQPIp2cg6kPdxp B3txGLTRhrN5nEhiu9k9NVxdTxvJHYGGBeVdlZRgD2/OKc2v4fHKC2rHVb5zWUxp21e7 asJ/y0jTGxlxFlOesNpB4Vu61bQphhdX0K+tPM75oIKGHICafB2aO1/EYcMC31O60xjI qqgbg/Jr8Ap8OH3dw95DDII+6ADkPHesTAbuYxmlI0Ak6zQa+p0ZjetrjyRLqITWfFPc 8bbCAOMQe9zfPV6uYEGTWC9fQ8Mw7oyaak3BQjURa0yGKVQ/jMjUhEsC3HJbgl7MFrWc B48Q== 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=TbkZi1aV2qkvgFIIp74fucItTC7Ec1qzreVXXTLwOvA=; fh=s6eu0vtygbLkFjUJ5yAoqjZcZX3LCT1qZ0AN/r0R5lk=; b=M90bfyQoRNGObpDzE65OR58/MfC+1oveO+hYYlAL/9R1/mhIZCgUD9ygPEGee5AcNV 8kWHyny3QbFELR7UrKrUBgLncjzzXkHGjLIZxrCt4elYk8cVC+HhAp8LRhjhUd75idyb +OlwowCxnXo0iq4yWfHeJHRbsMbHHwEanM5qQvslYj3HJXAZZCM4glaKNrQh+fyUyB6U KTeuP6ZfBQJTzmH0Pute3WMD3FXCLeVDs8RmKCELwmPxStKKB796oe0iYMoX4QKWlwGt fV7c9d9Y9eQUwwlqodcge3f+Yax4xO2I2Yhgm14ojk0eDvQFzFMD9j9bsrfYyn7rDhkG dcrA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@inria.fr header.s=dc header.b=j9jiww5b; 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=NONE dis=NONE) header.from=inria.fr Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id b22-20020a639316000000b005aa0e024d5esi1528055pge.656.2023.10.18.00.01.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 18 Oct 2023 00:01:12 -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=@inria.fr header.s=dc header.b=j9jiww5b; 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=NONE dis=NONE) header.from=inria.fr Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id B666F80C2E29; Wed, 18 Oct 2023 00:01:09 -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 S1344419AbjJRHBC (ORCPT + 99 others); Wed, 18 Oct 2023 03:01:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52580 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbjJRHBB (ORCPT ); Wed, 18 Oct 2023 03:01:01 -0400 Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77E23B6 for ; Wed, 18 Oct 2023 00:00:59 -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=TbkZi1aV2qkvgFIIp74fucItTC7Ec1qzreVXXTLwOvA=; b=j9jiww5bvubw9jqoHooV23bPWKXw9s3ddslRE4jgupAJGj4hUnWvemeP U0byhM/z4qnLiwM/4lvFd1Qtb9ZBdznsrwvlQ50sbf0fWTwgHQUh5QpII iJs+PRC2zzrBRMkD4d0KJKJ/rNSwJbRaV4PrKUcX7As3wE+sy20dj1A03 Q=; Authentication-Results: mail2-relais-roc.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="131809070" Received: from dhcp-138-246-3-50.dynamic.eduroam.mwn.de (HELO hadrien) ([138.246.3.50]) by mail2-relais-roc.national.inria.fr with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Oct 2023 09:00:57 +0200 Date: Wed, 18 Oct 2023 09:00:57 +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 1/2] staging: vme_user: Replace printk() with pr_*(),dev_*() In-Reply-To: <20231018063038.GB1868@Negi> Message-ID: <82dc1055-521d-e4d-9d91-b4cc7d8d9d3e@inria.fr> References: <19637f96-40bc-a46b-8e7a-fa59e5e9e16@inria.fr> <20231018063038.GB1868@Negi> 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 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 00:01:09 -0700 (PDT) On Tue, 17 Oct 2023, Soumya Negi wrote: > Hi Julia, > > On Wed, Oct 18, 2023 at 07:47:29AM +0200, Julia Lawall wrote: > > > > > > On Tue, 17 Oct 2023, 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. > > > > It's not possible to use the dev_ functions more often? The pr_functions > > don't give context information, and the message don't seem to give much > > context information either. > > > > julia > > > > Yes, I think there can be more dev_*() functions. > > Most of the dev_ that can be added are error/warning messages where the bridge's > 'struct device' instance is accessible & can be fed to dev_ fns. Although I went > through the VME subsystem docs, I wasn't sure if the bridge's context made sense > to be printed with those messages. So I wrote them as pr_ functions. > > Should I add them and send a v2 for review? Maybe wait a bit and see if someone else has a comment on this issue. julia > > Regards, > Soumya > >