From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Snitzer Subject: Re: [PATCH 1/2] device-mapper: use dynamic debug instead of compile-time config option Date: Thu, 14 May 2020 13:15:33 -0400 Message-ID: <20200514171533.GD31400@redhat.com> References: <20200514060929.85469-1-hare@suse.de> <20200514060929.85469-2-hare@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200514060929.85469-2-hare@suse.de> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Content-Disposition: inline To: Hannes Reinecke Cc: Damien LeMoal , dm-devel@redhat.com List-Id: dm-devel.ids On Thu, May 14 2020 at 2:09am -0400, Hannes Reinecke wrote: > Switch to use dynamic debug to avoid having recompile the kernel > just to enable debugging messages. > > Signed-off-by: Hannes Reinecke FYI, I decided to always use pr_debug* rather than preserve using printk if CONFIG_DM_DEBUG is enabled. More consistent and less surprising for a developer (to have to reason through how to enable debugging). May cause initial surprise if debugging messages disappear despite CONFIG_DM_DEBUG being enabled... but pretty sure DM developers can cope (and/or help non-developers) as needed. Patches were staged for 5.8, I also added an additional related cleanup: https://git.kernel.org/pub/scm/linux/kernel/git/device-mapper/linux-dm.git/log/?h=dm-5.8 Thanks, Mike