Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp2158533pxa; Mon, 17 Aug 2020 02:25:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx1X/gpi4x/L9K64Zu6hj76zt9oiBDyMRPzrDF9OAfZ19W8fXkgwXHG9xxxd6jWTdzg1NRe X-Received: by 2002:a17:906:6ad8:: with SMTP id q24mr13963489ejs.192.1597656309756; Mon, 17 Aug 2020 02:25:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597656309; cv=none; d=google.com; s=arc-20160816; b=R9YG6gimOKuYL6Qna4hE3h+BzBNqFJWa3CW7TPXQ73YuOWvyJsKzKGJ7jx3C62V70i fdI+YqOUTQgZXOfg/fDCXQQ3egfVA1I2MVmTPfRu0sKCI7ubxO4lHF1PXAO6PCIczCry 3tfPNAO3zYMCrT9BlcANxwMaYasBU+kHMAtSYEOxW1XWw8WeRPcB43c8UbuCxfqPRIIR 1liNNLJlfZk7ivmmEn1uRdMuEj+r6smZ9aLIBuhl1b0n7yre+Hi33op4J5eeuZqHeIE8 qdTzwjkPVLXmmCBEsn/uBWbsSqBydwssRHRumGgCDa2YX5a5kKE/PDqv7TI/KLgS9cZ6 mZBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=pzS+9+lr2xk/rP+YjZ4CjcDZPGT5BpmB3I8mWcl+aVY=; b=OZWLjeSA/vnqO9G+TgMhXA5qVlHDbIeKxhRWW7o1gnXXjjoCLUmeM7Vfy+bp29ojjI xajkehuqjwtCs+q/ybNLbklwGTNXNIz+YGf+wuiJA1QVCltUxjreUfB563YsgbWtywgl QKEeVVtfooHn79buk1swqyEIhXmiNikUCnXpVMRWMh+O9QFryRwa0NZx2mDIK/69Cvlu VYW/zGBeIW8MJ34A2rayKUExiq6XGbi8pGGOiVtp+bwWgBdS2KQDNZaJDxDLRlmOY1M9 ZYGhGVK5TTtEdnUtl0SeF6C67rbzWH2bYxF/qePgkhDE95O5OK3bG7z3gGO+FN/5aCWh L4xQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LX05aoU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id d10si10206306edq.275.2020.08.17.02.24.46; Mon, 17 Aug 2020 02:25:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=LX05aoU4; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1728162AbgHQJYJ (ORCPT + 99 others); Mon, 17 Aug 2020 05:24:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33762 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726381AbgHQJYI (ORCPT ); Mon, 17 Aug 2020 05:24:08 -0400 Received: from mail-io1-xd42.google.com (mail-io1-xd42.google.com [IPv6:2607:f8b0:4864:20::d42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5EB52C061389; Mon, 17 Aug 2020 02:24:08 -0700 (PDT) Received: by mail-io1-xd42.google.com with SMTP id g14so17016680iom.0; Mon, 17 Aug 2020 02:24:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pzS+9+lr2xk/rP+YjZ4CjcDZPGT5BpmB3I8mWcl+aVY=; b=LX05aoU4ZVoS9xaRC8X67z1mTc/+5idee9umeA30L1hzpVy+ZSCFEQz+eTK7+pEQgK eecOTM44AXzxjFkPqTtFBBpBf8R4NxoR7i3hpXKd8PTKtR93o+HZByEZHzgTvNpb4R1j V7Z6/oZ5xDa550yylWG6lLV57SfGssiexFU98JGm4viuN5+0/KnunlKsDr3ZjoSqxfgx CJ4PgFiF1TilwDvtgoiCAlPLgkbuv4dmh2AUvvn0UjAHlb88CrBRzfs0FMmKXvheGozS lfBhHO277RftiovjJQ82OGT8nTjFn9asbMIE4i4XteBqo9nS0FbHp4N02ynaTzojEuUr 3pvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pzS+9+lr2xk/rP+YjZ4CjcDZPGT5BpmB3I8mWcl+aVY=; b=kU7oAovsfNlznW428rT9Bu4x791PNCCVc09TSsR4bdyAsNZ0rSVBaIjaN5XX0+/qMc vdq8sOy/2God1nx4UbS4+6Xu76hIOS9ZSqHCEF3o2v1vlo9HVtUd0ef9LqPNmBTebBDv LU+PeaJ6BEUB9Cg7FG7xrp02J2wUmciaIz/Y8UNOGd0RxTPFKWK9woiqsiJZBmman0cg 7tzLEuwUTgPfhsatP+hZbg6A+O0MOwpvIRvW+gn//+0ywqAIPtUPq+vLCyp9ePwOAqsk ctzQvfTDsSzMCG720xpYShdT6fQbTrdRK2CetbpL5QnozFCDWQ3NFd5bB0s5AooGhHaL kUhA== X-Gm-Message-State: AOAM530mcX9wukGtIzTZ0qvIn+SCWxg8lI1bKquqBclWp8/NSF2RgHgH CEE7gtjIZMpgBIocsvW7DreJn8aIa5I7RarHsWlRYR/0EfA= X-Received: by 2002:a6b:bb43:: with SMTP id l64mr11709080iof.191.1597656247336; Mon, 17 Aug 2020 02:24:07 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Ilya Dryomov Date: Mon, 17 Aug 2020 11:24:14 +0200 Message-ID: Subject: Re: [PATCH V2 6/6] ceph_debug: Remove now unused dout macro definitions To: Joe Perches Cc: Jeff Layton , Ceph Development , LKML Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Aug 17, 2020 at 3:34 AM Joe Perches wrote: > > All the uses have be converted to pr_debug, so remove these. > > Signed-off-by: Joe Perches > --- > include/linux/ceph/ceph_debug.h | 30 ------------------------------ > 1 file changed, 30 deletions(-) > > diff --git a/include/linux/ceph/ceph_debug.h b/include/linux/ceph/ceph_debug.h > index d5a5da838caf..81c0d7195f1e 100644 > --- a/include/linux/ceph/ceph_debug.h > +++ b/include/linux/ceph/ceph_debug.h > @@ -6,34 +6,4 @@ > > #include > > -#ifdef CONFIG_CEPH_LIB_PRETTYDEBUG > - > -/* > - * wrap pr_debug to include a filename:lineno prefix on each line. > - * this incurs some overhead (kernel size and execution time) due to > - * the extra function call at each call site. > - */ > - > -# if defined(DEBUG) || defined(CONFIG_DYNAMIC_DEBUG) > -# define dout(fmt, ...) \ > - pr_debug("%.*s %12.12s:%-4d : " fmt, \ > - 8 - (int)sizeof(KBUILD_MODNAME), " ", \ > - kbasename(__FILE__), __LINE__, ##__VA_ARGS__) > -# else > -/* faux printk call just to see any compiler warnings. */ > -# define dout(fmt, ...) do { \ > - if (0) \ > - printk(KERN_DEBUG fmt, ##__VA_ARGS__); \ > - } while (0) > -# endif > - > -#else > - > -/* > - * or, just wrap pr_debug > - */ > -# define dout(fmt, ...) pr_debug(" " fmt, ##__VA_ARGS__) > - > -#endif > - > #endif > -- > 2.26.0 > Hi Joe, Yeah, roughly the same thing can be achieved with +flmp instead of just +p with PRETTYDEBUG, but PRETTYDEBUG formatting actually predates those flags and some of us still use bash scripts from back then. We also have a few guides and blog entries with just +p, but that's not a big deal. I'd be fine with removing CONFIG_CEPH_LIB_PRETTYDEBUG since it's disabled by default and in all major distributions, but I'm not a fan of a wide-sweeping dout -> pr_debug change. We do extensive backporting to older kernels and these kind of changes are rather annoying. dout is shorter to type too ;) I know that in some cases the function names are outdated or duplicated, but I prefer fixing them gradually, along with actual code changes in the area (i.e. similar to whitespace). Thanks, Ilya