Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2383386ybl; Thu, 29 Aug 2019 07:30:29 -0700 (PDT) X-Google-Smtp-Source: APXvYqxf1k76VZd45c0uXTp/AlKVYi8kE/DUES/8UAVhX82Cm7kUzUkSmZObX7QEyw1Ktjb22xgO X-Received: by 2002:aa7:9477:: with SMTP id t23mr11965636pfq.29.1567089028795; Thu, 29 Aug 2019 07:30:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567089028; cv=none; d=google.com; s=arc-20160816; b=ruXQgitd9SY0GF81W05CBOBCtAQMOwyGLo1JSJFkN0oDoZTP+0XhuBqCjE93M58Ys7 8EkqL8nEtl1uDCnfexQFFCtIAjtN9RjY7OHIYjWvvEA8GV83IPKZfF//vA/tlmeu/UlC ZUOFWsKB8dGzgL5QQMomEnYR+uyb/ftIpKgu+gViTJ3sE2nnSIgeAcRHznSAaJ3C2cVW /MSbnNONI3/40Je0aYDf0kRiG/hn4Yn7cmKFXF2s1jbOWdN+iP631d0tEw0O1oT+0vfT cO5KQUqvw7MSLotO/aCpTM4sAXv1gfQxV/kZ615h7iFCJrNn15nf2OHtxqw9TK6CGidN 7AaQ== 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=mIpyQ3wOb9bWqvkX0Kpr4MtQFBTIPyZmoRnHAHX/iC4=; b=cGRinjPFQNZPYmZKmPPFB1C36QUkYfqa+xxyt5GSpuT+t40wEc8u3S9obOFWNVA4bn QT6YBvlVNQCLdpYSUmQPDsGhzvEcfiY/iwTUraDbISe6eLApVTnXyf1jxF3eLqHZz+iI kJjifUeMgcrxg4/c5EeDNkc2oTTXmL3uk938seIwTqPk2MGQTn+/+of2OWNXyTb4mxRe ejBYKrtTskLYtwFKtgbV5TL1JksLXgqw8SIge5os7gD0+KpZqrYssEsd2V1Fr7wq0cjF UN2IqCNbCY5Tq/8GGrJL/bnRbtHw4ku2bWXwG9V+Td4C6Ivod6SK5+bfWAAjP7D6dd4v QSHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=lHE8Rghi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 61si2000462plb.270.2019.08.29.07.30.11; Thu, 29 Aug 2019 07:30:28 -0700 (PDT) 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; dkim=pass header.i=@linaro.org header.s=google header.b=lHE8Rghi; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727255AbfH2O26 (ORCPT + 99 others); Thu, 29 Aug 2019 10:28:58 -0400 Received: from mail-vs1-f66.google.com ([209.85.217.66]:37670 "EHLO mail-vs1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfH2O25 (ORCPT ); Thu, 29 Aug 2019 10:28:57 -0400 Received: by mail-vs1-f66.google.com with SMTP id q188so2550167vsa.4 for ; Thu, 29 Aug 2019 07:28:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=mIpyQ3wOb9bWqvkX0Kpr4MtQFBTIPyZmoRnHAHX/iC4=; b=lHE8RghiwfW1Za7MXZfEj+tcRA5+wrEWmVF5Keow8qTDcQOlGf4062XfDSUn6uEXDh lZNKY9YudWj2VwmIGrrk0z96f7MCwqTmToJ0qUx7s9qo5fMEKYT63v3iilBq/ykKVI0k 4uQGf2L0Qu4GxqfenZnbk3+E1Hyft/0qcstmSQbMSOP0hSUEeCdV4ho5986Zq2vC8vFd /3xTmD1TXSCXRTRhGGM9PJzXP4mIJTDL8Uz9uL0aFnR4Pv2X7S+q6R+YjGzN16IA04xd G/zNaTE1nZDJiQiJwhAZUOdxXwX36xfy+KGbSTMV406iQO+PaEU3HTP2Bd2sUPzNjmH9 9DGg== 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=mIpyQ3wOb9bWqvkX0Kpr4MtQFBTIPyZmoRnHAHX/iC4=; b=mhUYvow6dVvIbVpnxipHSwewwRUQJk1bApJAuTrK1SENDNkVLeZvulfes48KFAlSud K+ZGYj1Zttgu73VYXRFR/6qoIIhR5v4u6QdsxYNajuuDAPtmyhSdoL+vr1JCYKDYTzV3 IhxQ+kvuyQq367eohEeMxA9qNC3Bh4AkaHZyuYu021ih+GUKc55pYkXa024InIwGkcga BBVJoNlUIJ5ivt+RsftiakFuaG3TooMdZHtuFWZGf8n3pNlwigPXPpuRAbtTryoSgNOw wJMrjZocF+sdEeU68hTeFUnz7sT4xbMGEkzwGO0yWUSY/8gzuOZ6LjdzHMPDpIzpc9wf PuXg== X-Gm-Message-State: APjAAAV8d9YkZxAqZ6IrNcwzvrOt5zh2/KyWFpecjdUS9WkPz6dWLGwm yynsFiRSCGzRQvsamsFaw2O7loH1MC+HX10Y1mofeg== X-Received: by 2002:a67:b009:: with SMTP id z9mr5725405vse.27.1567088936391; Thu, 29 Aug 2019 07:28:56 -0700 (PDT) MIME-Version: 1.0 References: <93fa782bde9c66845993ff883532b3f1f02d99e4.1566907161.git.amit.kucheria@linaro.org> <20190829140459.szauzhennltrwvg4@holly.lan> In-Reply-To: <20190829140459.szauzhennltrwvg4@holly.lan> From: Amit Kucheria Date: Thu, 29 Aug 2019 19:58:45 +0530 Message-ID: Subject: Re: [PATCH v2 03/15] drivers: thermal: tsens: Add __func__ identifier to debug statements To: Daniel Thompson Cc: LKML , linux-arm-msm , Bjorn Andersson , Eduardo Valentin , Andy Gross , Stephen Boyd , Brian Masney , Marc Gonzalez , Daniel Lezcano , Mark Rutland , Rob Herring , Zhang Rui , Linux PM list 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 Thu, Aug 29, 2019 at 7:35 PM Daniel Thompson wrote: > > On Tue, Aug 27, 2019 at 05:43:59PM +0530, Amit Kucheria wrote: > > Printing the function name when enabling debugging makes logs easier to > > read. > > > > Signed-off-by: Amit Kucheria > > Reviewed-by: Stephen Boyd > > Reviewed-by: Daniel Lezcano > > This should need to be manually added at each call site; it is already > built into the logging system (the f flag for dynamic debug)? I assume you meant "shouldn't". I haven't yet integrated dynamic debug into my daily workflow. Last time I looked at it, it was a bit bothersome to use because I needed to lookup exact line numbers to trigger useful information. And those line numbers constantly keep changing as I work on the driver, so it was a bit painful to script. Not to mention the syntax to frob the correct files in debugfs to enable this functionality. As opposed to this, adding the following to the makefile is so easy. :-) CFLAGS_tsens-common.o := -DDEBUG Perhaps I am using it all wrong? How would I go about using dynamic debug instead of this patch? Regards, Amit