Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1193470ybh; Mon, 13 Jul 2020 11:41:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwXFjguINVdnuej/Ijx1WODgxe8ojSTi7DDielWhdm7MNb7cMx6ERbzR84SK0akQVDK9LYY X-Received: by 2002:a17:906:fa9b:: with SMTP id lt27mr955466ejb.513.1594665684029; Mon, 13 Jul 2020 11:41:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594665684; cv=none; d=google.com; s=arc-20160816; b=qncRHhJdefsHhp6gh1O4sTvZflaaZXX3W2H6J9pEpL61M3fgI0NiAtmYrY5IC9ztNQ JRhnd80/m9ULmQpOtxveduAzn5ET6+Jx5b5EZJcGv/n5aDtQGWI/wqFo8bYQcAQZaDgi +Emzw5nGxoaIz7MRT+jlVlzHmlVsS3G4yV0JNfnf9fsXTThZSTKueiY8RXOeL6tL547B UQTEDRAXO8IeZS4xbFvMKilFy+pkW781XIvO0OGDZKqIYOT6Idk5zxq4GsvFr6YlY8yY JeYLkzj1T+zN6l0OJ0Lwq3bZ8qP/SLxP3uHJOk/6QtpgFc6gZfpOVWHwvpCnoAyA1vK5 5qbg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version; bh=URQy2zSigbjRGd5EghmZVODSwEskvKCt9lccFyRnhew=; b=IaKHgpOiJA4f7sv4S7lWBDbPHA40qmY9pTHCRB40t5Dl/rpWNtWntO7Ghjxdu00tnO 5DT1VRk6Yepk1TK7bD6Acor3sAt3MMBZKuWtjBlmMBOMLDiG5gAm2dqO/hX4oqnz1svu RUbReKGa+LSkQSPRFHi+soee5z2UZw2un8N2xrpPt6R2obj/MGlb5HQ+fNxzAjpobJnh 37eMpZ3/CDSB0AZVHiCvwIb69c/d4n5P00QExgBCUcko8lJyLuLBzYoka4lGmv8VD1Kd F7DPHZNXzJ6+AMEasvB1gJS+3qMaTy0TIALXVEKyjDsC7G0Q4SJ41zLWAnUBLDy2HT2t aooA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i20si9888313edy.277.2020.07.13.11.40.42; Mon, 13 Jul 2020 11:41:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-bluetooth-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-bluetooth-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726321AbgGMSih convert rfc822-to-8bit (ORCPT + 99 others); Mon, 13 Jul 2020 14:38:37 -0400 Received: from coyote.holtmann.net ([212.227.132.17]:33722 "EHLO mail.holtmann.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726305AbgGMSih (ORCPT ); Mon, 13 Jul 2020 14:38:37 -0400 Received: from marcel-macbook.fritz.box (p5b3d2638.dip0.t-ipconnect.de [91.61.38.56]) by mail.holtmann.org (Postfix) with ESMTPSA id 6ED94CECCB; Mon, 13 Jul 2020 20:48:34 +0200 (CEST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Subject: Re: [PATCH v3] Bluetooth: create CONFIG_BT_DEBUG_FEATURE_FUNC_NAME From: Marcel Holtmann In-Reply-To: <20200707195156.885137-1-alainm@chromium.org> Date: Mon, 13 Jul 2020 20:38:36 +0200 Cc: Bluetooth Kernel Mailing List , Archie Pusaka Content-Transfer-Encoding: 8BIT Message-Id: References: <20200707195156.885137-1-alainm@chromium.org> To: Alain Michaud X-Mailer: Apple Mail (2.3608.80.23.2.2) Sender: linux-bluetooth-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-bluetooth@vger.kernel.org Hi Alain, > Creates a CONFIG_BT_DEBUG_FEATURE_FUNC_NAME option to include function names in > debug statements. > > Unlike other platforms __func__ isn't a string literal so it cannot be > automatically concatenated by the pre-processor. As a result, the > function name is passed as a parameter to the tracing function. Since > pr_debug is a function like macro, the normal expansion of BT_PREFIX_PARAM > does not work as it gets processed within the first parameter as well, > for this reason, BT_DBG is split into two versions. > > This patch was built tested with all 4 possible combinations of > CONFIG_BT_DEBUG_FUNC_NAME and CONFIG_BT_FEATURE_DEBUG configurations. you actually didn’t answer my question last time. Can we just always show the function names with CONFIG_BT_FEATURE_DEBUG and leave it as that. Regards Marcel