Received: by 2002:a05:6358:a55:b0:ec:fcf4:3ecf with SMTP id 21csp1101786rwb; Thu, 19 Jan 2023 06:41:57 -0800 (PST) X-Google-Smtp-Source: AMrXdXsKqFWcYPS85yIRvsUPgjBwbGaILzNNTLeSmcjJ7rIPp9hm1rUzdz2gtvw+BhWQIfmOwzb/ X-Received: by 2002:a17:906:60d0:b0:877:612e:516e with SMTP id f16-20020a17090660d000b00877612e516emr17403447ejk.61.1674139306846; Thu, 19 Jan 2023 06:41:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1674139306; cv=none; d=google.com; s=arc-20160816; b=FqnnjR+/8PJwo9c5O60DSwf8eA1X+Aw67hZ2Pj+zFTqHoJc0BvQ01MU/7sB2Y2tmJc cYcfp9+D0xGoRPQkO7XpK1F8gCenqM2SiPJqrsJaj359VjQOKHSnTCqyK5uqpFvZsM9j Op+7pFUFLxM0aAAB70vhKWCK5o0ZBdV71RrOttjP83vBf5RO8+jfi1W7SAGtRTI8hAaQ 5JRxEsMzw2/9w/2AZU+d1IGaU1gioc4gcI72E5ibV0czaf8o7f0iarHBRd9F1yHggsmk JDc9FVSX+6u+IYmkvJlsRKZbk344hT3RuMuRLs2wz3FyHKfMNXbC+1AuSzVNIRh37h0j QsLg== 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=wS7HSylCm9otocOdYBhDnMFqnI4PKH4nfYFHOFNvW3g=; b=dCG0PkzNTvPOYglkoBE0avlW+JxXm+e0KgnuYyjCwkj55mUpMUZI6hdL4kV9nT4qLq mx4AjQUBO5o41prS4WqQ7O4c+UtuBU6ivmIbbSPupWCXl4ODErOjeDAy27rbUTgghpZq vGaBKj0sRfobSb2NsrgXWTcalonA1Qn7hp1dVS7b3imcaKVvohe3lKAdGyr08W3UAYWk euYQkNtkryPi/sorvwswUNMMCXQ98uWiR8NNkwo/OpA3cRVmaffHM58y3Pjzfo9LnGIe 4utCrmHNiiTLZCZoYv9/O2LuKTJaukQ/egtBFZmUmO3NghLvH/IQfCO2YPXsi48g9Nh1 EuAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZyeibTCU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id o9-20020a170906974900b0087783a6727dsi906491ejy.790.2023.01.19.06.41.35; Thu, 19 Jan 2023 06:41:46 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=ZyeibTCU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231676AbjASOdg (ORCPT + 45 others); Thu, 19 Jan 2023 09:33:36 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230510AbjASOc4 (ORCPT ); Thu, 19 Jan 2023 09:32:56 -0500 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A1E0F4A201; Thu, 19 Jan 2023 06:32:29 -0800 (PST) Received: by mail-wm1-x334.google.com with SMTP id bg13-20020a05600c3c8d00b003d9712b29d2so3714672wmb.2; Thu, 19 Jan 2023 06:32:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=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=wS7HSylCm9otocOdYBhDnMFqnI4PKH4nfYFHOFNvW3g=; b=ZyeibTCU3dHPBSQm3WEHymYSJKlzsLGwKkfHxwUW+zHH042eB7+IP/Sj0sEQFz6Jcj qu4v3JFderI0jEofEgqUdNuzs2JAeJgMZqswIkfxy32njBcZthC3qWipijH92mL4KqFr +8sdV/pFoM6gcD4xk1Ql6rKYxJr19dAPyeJDJYd/yqx93L/crHwkdHENThnjCJptZ4u+ uk5ORYgoPKm7KD0QUqFC276bwEUOnYm7ap9lWdW3bEFX77L55hRkf02Z68of/uzFMdal eoUdH52gXk0xreepJohtwXGYXwkv5zX4/k7+HKFW6/RuO7awltBN5yy01HaDHG4Iv5Sw 79jg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=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=wS7HSylCm9otocOdYBhDnMFqnI4PKH4nfYFHOFNvW3g=; b=EsQzahXpVbQ1GqOYoZ+YVyFxxA1E/VYytUHWR/k4glZGkoQqTe8rvKhHW+Anafpv8y ntrqj8IQmKJXhf5PDVWzEujrBArehMf/T1Lb8eNrWrHm0nT8rlYJro5kcWyRbHGBszyI SEAbHuv8JXbXilyhM8ImsGUyg8mNFmR2TJyGaciFuV/EPNQG80u7EFyfPgUVc11tFkYm gtUZqjHlskp7lepdEFGVWp3cg4kGW6cS+IjIvC086zM7O6sSLGrNfQxuM2Ys0ZYkk0u/ nvI9o953ZoM/2yH2qEdeEPCAV81Kmnr40fgbvSYvY3bzlHp2QGqmWeni+4r6oI6zyDQ4 qDag== X-Gm-Message-State: AFqh2kq9tOHtPF0WkALmTTIru2dcRL7GALsA6+zjfWeXIsQHBB4ZMkem ORO1Z+dFq18OE+wKocNtmlE= X-Received: by 2002:a05:600c:1e19:b0:3da:2ba4:b97 with SMTP id ay25-20020a05600c1e1900b003da2ba40b97mr17848869wmb.19.1674138748164; Thu, 19 Jan 2023 06:32:28 -0800 (PST) Received: from localhost ([102.36.222.112]) by smtp.gmail.com with ESMTPSA id z4-20020a1cf404000000b003da2932bde0sm5701400wma.23.2023.01.19.06.32.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Jan 2023 06:32:27 -0800 (PST) Date: Thu, 19 Jan 2023 17:32:24 +0300 From: Dan Carpenter To: Umang Jain Cc: linux-staging@lists.linux.dev, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, Stefan Wahren , Greg Kroah-Hartman , Florian Fainelli , Adrien Thierry , Dave Stevenson , Kieran Bingham , Laurent Pinchart Subject: Re: [RFC PATCH 1/4] staging: vc04_services: vchiq_core: Drop custom logging Message-ID: References: <20230118115810.21979-1-umang.jain@ideasonboard.com> <20230118115810.21979-2-umang.jain@ideasonboard.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230118115810.21979-2-umang.jain@ideasonboard.com> X-Spam-Status: No, score=-1.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 18, 2023 at 05:28:07PM +0530, Umang Jain wrote: > diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c > index 4e705a447a62..7b3c57326d28 100644 > --- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c > +++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_core.c > @@ -227,10 +227,11 @@ static const char *msg_type_str(unsigned int msg_type) > static inline void > set_service_state(struct vchiq_service *service, int newstate) > { > - vchiq_log_info(vchiq_core_log_level, "%d: srv:%d %s->%s", > - service->state->id, service->localport, > - srvstate_names[service->srvstate], > - srvstate_names[newstate]); > + struct vchiq_state *state = service->state; > + > + dev_info(state->dev, "%d: srv:%d %s->%s", state->id, > + service->localport, srvstate_names[service->srvstate], > + srvstate_names[newstate]); This should be a debug level printk. Don't spam dmesg in the success path. Success should not be noteworthy. > service->srvstate = newstate; > } regards, dan carpenter