Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp419949rwd; Wed, 7 Jun 2023 01:36:15 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5owPpF91gfE7SaqeFScy4bVnqc346xHb3y6rBXoZ1TAg+p9t1iMMBNYxO4M+o7xpng9AQk X-Received: by 2002:a25:4e43:0:b0:bab:cd90:87be with SMTP id c64-20020a254e43000000b00babcd9087bemr4994442ybb.51.1686126975181; Wed, 07 Jun 2023 01:36:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686126975; cv=none; d=google.com; s=arc-20160816; b=v0Z2Gaxq3s50RWfB3p/0+LfhdgjHsWhc0T+tE1kp0RKihtRp8brvze+YVZSZa6KuGA 9RlvvllMkXLsVeFNhOTaoy4t6b2H6DLYFPEoqTGH++LTAI4+38ScJ/3/F1zUHCiLgYZ0 nj2Ur9cvyBhrwKFit/+KmSy8ubolV6FC7SEbqK/+2tHJuRLqW99yHYfCJXvu17piazjc pCiYcuxZpT3oe9uAohECYGPNYg1CLJ9Djo9pWlmnX1OkImn+qBHl34FPWTmRnxweixg4 egCmSjLAx15iwZnrWfFMFrqltvuOjsOBhNBN8RclmFSyus7ve+MQSYibFcJe2g2dGLAI e9Bg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:references :organization:in-reply-to:subject:cc:to:from:dkim-signature; bh=Xbu2By2+OElVHS9Q+7+RUGOqrQf9rjTAp5kQj7T+Okg=; b=RhyDrmCTuuKIK/pzU0E4J5R5kSJiQLLvxEV70IrNjJiSxDfpfaViIHMJ6G0/vcnusG Xht3WMb3iDl6U/56fW9oOhBb0apWN+gQqRd4aTx3KBxYS80btad5EutAo3dKhiO+mNFG xkmwUiy8wTCTCeuY63m7OXBMg/MLL2CtAPnEvX+DATfE1gYTa2A7GwbU9t1rxZ0jl95o CcbK4sG9f66jfk2xQ1/Jo6IJNwkUk0/43/gJXYvvXSIl5kG/Vc39mNmHcA2as9FWXb36 7/ih9ndEEXP9+2TcY2QeitbFd2eiSa5/DtRXGytOGebyOELwNrQS9TMWDWVMNsH4p6o+ V2cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=CW+ZTq3V; 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=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a17090aea0c00b002568322e3d0si814327pjy.34.2023.06.07.01.35.56; Wed, 07 Jun 2023 01:36:15 -0700 (PDT) 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=@intel.com header.s=Intel header.b=CW+ZTq3V; 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=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235470AbjFGIMY (ORCPT + 99 others); Wed, 7 Jun 2023 04:12:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56446 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234575AbjFGIMX (ORCPT ); Wed, 7 Jun 2023 04:12:23 -0400 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 882F295 for ; Wed, 7 Jun 2023 01:12:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1686125542; x=1717661542; h=from:to:cc:subject:in-reply-to:references:date: message-id:mime-version; bh=MLXJN8f1wgeJvba3Z+b92UH3LzPWiFgfUtqTwlhYIpI=; b=CW+ZTq3VAR6TPPRA4o7DDToqUczr7xR2VpjhV6PWdugecT5IAEFVLFKq 1Hxq40WXyCMPRnLKg+Dgq0L9nhFCfSzGPQs3j9p0ReluOSjoQDz7AM8M6 mQL+jbIAF8avph4Vy3LBsJnLMskgQyNAnWHWfrLBJ3WOum02lHP+1xq+r Kpz1AygP25oatylBUck/iz6NFqQMWzLU0VUzVW+5msBw7r7alKLal6oLI jjq6XzRcIjQ7VZcbkZWDycew9JsnBrlTJ6GgQRVZFNddpxheQlA7LeTNX QNzbPkcn4swnfShHYPUPirgO8ELnOtDsazOtLwP4wowBhxo8MeXie120x w==; X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="336544331" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="336544331" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 01:12:22 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10733"; a="956122146" X-IronPort-AV: E=Sophos;i="6.00,223,1681196400"; d="scan'208";a="956122146" Received: from nnesher-mobl.ger.corp.intel.com (HELO localhost) ([10.252.57.222]) by fmsmga006-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Jun 2023 01:12:18 -0700 From: Jani Nikula To: Laurent Pinchart Cc: Siddh Raman Pant , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Daniel Vetter , Andrzej Hajda , Neil Armstrong , Robert Foss , Jonas Karlman , Jernej Skrabec , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Suraj Upadhyay Subject: Re: [PATCH v9 8/8] drm: Remove usage of deprecated DRM_DEBUG_KMS In-Reply-To: <20230607035351.GD14101@pendragon.ideasonboard.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo References: <35bd95856a69f141640c27ea2b5e4073275032f7.1686047727.git.code@siddh.me> <20230606150419.GI5197@pendragon.ideasonboard.com> <87mt1ctgm7.fsf@intel.com> <20230607035351.GD14101@pendragon.ideasonboard.com> Date: Wed, 07 Jun 2023 11:12:16 +0300 Message-ID: <87jzwfu1wf.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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, 07 Jun 2023, Laurent Pinchart wrote: > Hi Jani, > > On Wed, Jun 07, 2023 at 12:39:44AM +0300, Jani Nikula wrote: >> On Tue, 06 Jun 2023, Laurent Pinchart wrote: >> > On Tue, Jun 06, 2023 at 04:15:22PM +0530, Siddh Raman Pant wrote: >> >> @@ -777,7 +793,7 @@ int drm_client_modeset_probe(struct drm_client_dev *client, unsigned int width, >> >> int i, ret = 0; >> >> bool *enabled; >> >> >> >> - DRM_DEBUG_KMS("\n"); >> >> + drm_dbg_kms(dev, "\n"); >> > >> > This message is pretty useless, it could be dropped on top of this >> > series. >> >> They do debug log the function being called. > > I overlooked the fact that ___drm_dbg() prints the caller's function > name using __builtin_return_address(). It thus has marginally more value > than I thought. Still, function tracing is best performed with ftrace(). I'm not going to argue this one too much, but it can be quite a step getting a random bug reporter from providing dmesgs to running ftrace. BR, Jani. -- Jani Nikula, Intel Open Source Graphics Center