Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp3604030rdg; Tue, 17 Oct 2023 23:31:17 -0700 (PDT) X-Google-Smtp-Source: AGHT+IF97mZbXf4x5kvVutFWCzMXwK3kv+IfTKgEoOW9e8myjX0ZHL8BU3jxdip7/Pe8A9QYeexu X-Received: by 2002:a05:6a00:23cb:b0:68e:399e:70db with SMTP id g11-20020a056a0023cb00b0068e399e70dbmr4560754pfc.6.1697610677172; Tue, 17 Oct 2023 23:31:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697610677; cv=none; d=google.com; s=arc-20160816; b=xQry6YXhDA4T5j8gIl6i0xfpX+gy2BTvYZ9e8ha6sL6eu9mclo6RkJUXJSHSrWU+Ym 0zXLE4N14DDgFjjHIwTqAcNHs1wOFmn+kFRhdXT04jTyOAij8ta1DTsZOwUTVmzLVvXM lMWwXDKmPeOVf2iaPfP7db7VEiG9y8feeCypJsV8HWykXZ5O/onJc65Uh2/XmI3M4aLY M5i8CC+C2f11XCDYKe9aS2lDE2zmvHJdt6RTRyKAHMP6+Q967OIwTRk/jyc1Gbm/lgmJ mXL//R02of0LEjpCZ/jGKMoMn9TL/GsAABTTAq/MQ9OPMYvULiPU6zrYDeb7xMtMbqvW /sdw== 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=T0Uk18GNbiJSbsmf1R3dcjXeGFJDfuJ+L1EqVZs7JXI=; fh=brt22qK6YnaxzTAypLBpCky+FJurVzcqXii1PYxJ64k=; b=BHbs2g1VwJcuf9vMHM0jsQ7mOu9R0GbnR3L4Jq80oyo7ogss01OkenJlKCGtiqWO1S DVVb+hzEnCko5gTijhOeNyAymanRSirwMSHw1PfnGU+BPGkxUvjALdOUhgnAek0wR4Zi Pw5cW9qfvfxllJNIKwYKFB4FzGXuU6N+YaH2l1J6e/yOidsrfCL0Fvhfw/LVailCLMa1 nLAP60dY3yJ16QmeDiJ1OWxnQ0L24os4D29A0O2/6V/+0mfq7jw1kSQ0My3IERmOSsWv YRoLvk4HcYbIEPwRBDsXq9bOHkJBthoVoznFFQtKRJy4OPXi2S/ZG6kaLUhIOgxEsAgV QclQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U9ePWSKm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (agentk.vger.email. [2620:137:e000::3:2]) by mx.google.com with ESMTPS id i194-20020a636dcb000000b0058988999c70si1499748pgc.165.2023.10.17.23.31.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:31:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 as permitted sender) client-ip=2620:137:e000::3:2; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=U9ePWSKm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:2 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 agentk.vger.email (Postfix) with ESMTP id DB09C80944CA; Tue, 17 Oct 2023 23:30:55 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229665AbjJRGao (ORCPT + 99 others); Wed, 18 Oct 2023 02:30:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43152 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229690AbjJRGan (ORCPT ); Wed, 18 Oct 2023 02:30:43 -0400 Received: from mail-pg1-x529.google.com (mail-pg1-x529.google.com [IPv6:2607:f8b0:4864:20::529]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E9B34100 for ; Tue, 17 Oct 2023 23:30:40 -0700 (PDT) Received: by mail-pg1-x529.google.com with SMTP id 41be03b00d2f7-5a9bc2ec556so3410570a12.0 for ; Tue, 17 Oct 2023 23:30:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697610640; x=1698215440; 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=T0Uk18GNbiJSbsmf1R3dcjXeGFJDfuJ+L1EqVZs7JXI=; b=U9ePWSKmql3AUteGs8qKvdZLvdI3O97QS1KqQRsMZFMDYEEkAFCpW9PJGi8uQTRp2Z S+BPbFbIhvjJxqFZHBZ4fpWaTHr20HgCkUT2/x9NV7Qdcma+d3b0tuStyZoa9spLQXcX 0K4Rw2qyAYa7uDRO5Eyk/Za5kGimmdtyLMUmXV26p+RRXezvsH7G1XHqmSN6rXhyQ1w6 1GQYR05U9obAc5i485CKFRKi0G5zrBhpWTNrND3jT22uVY2ORv2/i98M/LVIo++cbA88 /Mdkh21Dqa1Q2xIUV0FYssFZSeyf/iTUOwKgeEkkd8ZN5EMd2mbQtRYYya6e8bpgBbfE KKAA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697610640; x=1698215440; 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=T0Uk18GNbiJSbsmf1R3dcjXeGFJDfuJ+L1EqVZs7JXI=; b=UFyZQO9PcmjNieU24dc9gPJkA6qCrBYXzKQ02y6id3/kZlxEtN3wLQkpNtGj/7DZ6P rnZkJOn2NDMt/oiassragDoL2l4aNkt0g8C3z95Qg1kOULKHAgNSb+yRTiL8vhl8TXvP 9WviGU0ITxPJbZur/KJhntcFtkYNFQmfNrh7Qj2XrCpNGrNxuz27Wq4HLnmKgfuKbZTX lE8Dh978olBo/wHEhNnHDOUHit27tBFomYGhwBWf6rsp9geHL5HOhInApACb9cW7zTh4 H3oZGHwIV5gxA5vKzZmcENVEVdqXIhKd3g+As8+FYPf+xJDYUnRMgZQQf4mwuG/uu3l8 uunw== X-Gm-Message-State: AOJu0YzWyg71orH58QsJsLqnt3q9KBXFMKjSJAJtIMyLRdkDcWCJUAY5 aykqU+xiPBwDnrUHf5o9K5M= X-Received: by 2002:a17:90a:d494:b0:27d:669e:5a10 with SMTP id s20-20020a17090ad49400b0027d669e5a10mr4143180pju.13.1697610640267; Tue, 17 Oct 2023 23:30:40 -0700 (PDT) Received: from Negi ([68.181.16.134]) by smtp.gmail.com with ESMTPSA id b2-20020a17090a990200b002774d7e2fefsm546655pjp.36.2023.10.17.23.30.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 Oct 2023 23:30:39 -0700 (PDT) Date: Tue, 17 Oct 2023 23:30:38 -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 1/2] staging: vme_user: Replace printk() with pr_*(),dev_*() Message-ID: <20231018063038.GB1868@Negi> References: <19637f96-40bc-a46b-8e7a-fa59e5e9e16@inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <19637f96-40bc-a46b-8e7a-fa59e5e9e16@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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 17 Oct 2023 23:30:56 -0700 (PDT) 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? Regards, Soumya