Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp10896993imu; Thu, 6 Dec 2018 08:25:09 -0800 (PST) X-Google-Smtp-Source: AFSGD/W+jojVnAZkVr5dBtjq4tKxv33Jbf0rjstFCRlcSDokiCCsG+7q/8KIg5qgqa2we0PvtDvD X-Received: by 2002:a62:19d5:: with SMTP id 204mr29180215pfz.33.1544113509205; Thu, 06 Dec 2018 08:25:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544113509; cv=none; d=google.com; s=arc-20160816; b=eqUk1s0zRTv1CzNHvyqg4kQ8yoSgBL94ph5gyVsGJthkMLTas7Oqf1H61fQ5f2qfZq QpR+OR/leT79DHpCnv+wpQu7EcDS497p8faztY59vnmGdAB8mDXZn3lmvTr/ROZuCnFy 7KiSrMD6XI4arI+6j+Zly6wkKym/Ap3RMb2j36yXYvyg/JRzd/3M9dq4d+GidDn3Hqor F9sT8cYuhDbBHbsJZVTdqgE4sJxDHJ8tuR6eRFtJJQreCM4Hzj2AiUf4PG+kV8EwNZQ7 helHdpqaPMANB+ysKKWyhCIAI/yulpdlhX6dUEriuxPKltlZngeVIs4VLy5jruKr4hrj /tXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=pc32wcG0lZeKNsFtbsoq0MUt5/ZjN1E9GLbHNE/Opm4=; b=yKjsgr6tNkeMx3q2WBOy6axAnDufyKO3Di6tCaw+e4v6u4Z6MnzY7WehuVsTsIXqBM whJWxnUmnWzIEWYrxR9SRJ0kqVl2QFI0HQA48eN96zS7BxRZs+qScPImLBFv7K22rXHV UsIy/0ktJf5wFCJJ43QxvZew7flrrF8tTfE5lpzyoiSmYxq2Ks6boxuDB9L1MUAwsO22 zAmtwQU2Bvfytun8Esy47vL5+o0333dtrDt5cL9SQ5rvOTGgvECvGx7LkcEL/GGBPl6C 8ZjCGkPuk264iZ2hwqwFijKHH/89FQpVdowudsFWzNhT1Jc8ZncJzByzTA0Y3FPZY1My fTxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i96si585984plb.188.2018.12.06.08.24.39; Thu, 06 Dec 2018 08:25:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726070AbeLFQWv (ORCPT + 99 others); Thu, 6 Dec 2018 11:22:51 -0500 Received: from smtprelay0217.hostedemail.com ([216.40.44.217]:38714 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725849AbeLFQWu (ORCPT ); Thu, 6 Dec 2018 11:22:50 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay01.hostedemail.com (Postfix) with ESMTP id 76675100E86DA; Thu, 6 Dec 2018 16:22:49 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::::::::::::,RULES_HIT:41:355:379:599:800:960:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2198:2199:2393:2553:2559:2562:2691:2828:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:5007:6691:7514:7903:7996:8531:9121:10004:10400:10848:11026:11232:11233:11473:11658:11914:12043:12048:12114:12262:12296:12438:12555:12679:12740:12895:13069:13095:13161:13229:13311:13357:13439:13894:14093:14096:14097:14181:14659:14721:21080:21365:21433:21451:21627:30054:30070:30091,0,RBL:47.151.153.53:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:29,LUA_SUMMARY:none X-HE-Tag: toe67_357d55e604208 X-Filterd-Recvd-Size: 3377 Received: from XPS-9350.home (unknown [47.151.153.53]) (Authenticated sender: joe@perches.com) by omf05.hostedemail.com (Postfix) with ESMTPA; Thu, 6 Dec 2018 16:22:47 +0000 (UTC) Message-ID: <733672ada4f532f02137067b14d285728cdd120c.camel@perches.com> Subject: Re: [PATCH 1/2] drm: Only #define DEBUG if CONFIG_DYNAMIC_DEBUG is disabled From: Joe Perches To: Michel =?ISO-8859-1?Q?D=E4nzer?= , "Zhang, Jerry(Junwei)" , Christian Koenig , Huang Rui , Maarten Lankhorst , Maxime Ripard , Sean Paul , David Airlie , Chris Wilson Cc: linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org Date: Thu, 06 Dec 2018 08:22:46 -0800 In-Reply-To: <747d6c1b-8c0a-8168-bd1e-e969839ff5be@daenzer.net> References: <20181205165621.5805-1-michel@daenzer.net> <10fca21a-5d7c-fe9e-07f0-6200e9de538e@amd.com> <1586a49594d30b4bf4d88eba0d258e21efd26da2.camel@perches.com> <276fbf7f-d33f-83a5-cb88-bd4051dc03ba@daenzer.net> <61385d4cb6c9d990427349849d0af28faa3b67af.camel@perches.com> <747d6c1b-8c0a-8168-bd1e-e969839ff5be@daenzer.net> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.30.1-1build1 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2018-12-06 at 15:41 +0100, Michel D?nzer wrote: > On 2018-12-06 1:23 p.m., Joe Perches wrote: > > On Thu, 2018-12-06 at 12:52 +0100, Michel D?nzer wrote: > > > In contrast to the 2b case, the pr_debug output isn't visible by default > > > with 1b, so the latter doesn't fit "always produce output" either. > > > > I think you are mistaken here. > > Still puzzled as to what you're hoping to achieve with that kind of > language. None of the confusion about this patch has been on my part. :) Doubtful. > > Adding #define DEBUG as Chris did enables pr_debug output > > and is your 1b. > > > > Perhaps your default console logging level is set to a > > non-default value. > > I have CONFIG_DYNAMIC_DEBUG enabled in my kernels. The problem addressed > by this patch is that messages from drm_debug_printer are visible by > default (case 2b), whereas they shouldn't be (case 2a, like 1b). The default for config_dynamic_debug when DEBUG is defined is to output the message equivalent to when DEBUG is defined and config_dynamic_debug is not. That's a good thing and has been the general default since 2011. You want to override that, I suppose that's OK but it's definitely not a _fix_ as you have written. It's just a change in behavior. You added a "Fixes:" line. I believe that wrong. A long time ago, at my suggestion: commit b558c96ffa53f4b3dd52b774e4fb7a52982ab52b Author: Jim Cromie Date: Mon Dec 19 17:11:18 2011 -0500 dynamic_debug: make dynamic-debug supersede DEBUG ccflag If CONFIG_DYNAMIC_DEBUG is defined, honor it over DEBUG, so that pr_debug()s are controllable, instead of always-on. When DEBUG is also defined, change _DPRINTK_FLAGS_DEFAULT to enable printing by default. cheers, Joe