Message ID | 20201014091646.4233-13-patrick.delaunay@st.com |
---|---|
State | Superseded |
Delegated to: | Patrice Chotard |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=st.com Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=st.com header.i=@st.com header.a=rsa-sha256 header.s=STMicroelectronics header.b=RzgrxxeV; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4CB6LT03F9z9sTs for <incoming@patchwork.ozlabs.org>; Wed, 14 Oct 2020 20:19:28 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C9C59824A5; Wed, 14 Oct 2020 11:17:17 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=st.com header.i=@st.com header.b="RzgrxxeV"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id BF03882457; Wed, 14 Oct 2020 11:17:05 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mx07-00178001.pphosted.com (mx08-00178001.pphosted.com [91.207.212.93]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 8B3788241F for <u-boot@lists.denx.de>; Wed, 14 Oct 2020 11:17:01 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=st.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=patrick.delaunay@st.com Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 09E9CpjH010617; Wed, 14 Oct 2020 11:17:01 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : in-reply-to : references : mime-version : content-type; s=STMicroelectronics; bh=LafS8m13wRMJCCbpUYUvIBV4mcaY8hNLKmFOBcybtgw=; b=RzgrxxeVqyOlHlOy7RsbxMDu/EJ1iodO23oPH5XoLgW8fRIFJ9KRxZ/Qbj1yJ1/1Za0Q 4FjcLtAKPeYb1J8eooNqsZ2uCtdheQ2Ye10XZdraq5okNDv9257FU5b7PHhuUJ4f+pr2 4GAoauQKU1+MU59p9AaCBYLyJIvqSUUZeX3RWy38kw8QMugYbbPwk4Q8XyRYRs7g2ucg aQqClHVOXjl9ENYbTB1xGyH3G+jn4TznnLebKKMxWGcY/LxYsoFFZc8vEl/vcuuRKDxE Qn3GTv/syK2KnncKwUyQtFNgcOz3FHYJndMoQYz/rBg2XgfvLeuP5nm3s4DxGWdXAPxQ QA== Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx07-00178001.pphosted.com with ESMTP id 3455c8gc7n-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Wed, 14 Oct 2020 11:17:01 +0200 Received: from euls16034.sgp.st.com (euls16034.sgp.st.com [10.75.44.20]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 5F478100034; Wed, 14 Oct 2020 11:17:00 +0200 (CEST) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by euls16034.sgp.st.com (STMicroelectronics) with ESMTP id 568862ABA3E; Wed, 14 Oct 2020 11:17:00 +0200 (CEST) Received: from localhost (10.75.127.44) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 14 Oct 2020 11:16:59 +0200 From: Patrick Delaunay <patrick.delaunay@st.com> To: <u-boot@lists.denx.de> CC: Patrick Delaunay <patrick.delaunay@st.com>, Patrice Chotard <patrice.chotard@st.com>, U-Boot STM32 <uboot-stm32@st-md-mailman.stormreply.com> Subject: [PATCH 12/33] rtc: stm32: migrate trace to log macro Date: Wed, 14 Oct 2020 11:16:25 +0200 Message-ID: <20201014091646.4233-13-patrick.delaunay@st.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20201014091646.4233-1-patrick.delaunay@st.com> References: <20201014091646.4233-1-patrick.delaunay@st.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.75.127.44] X-ClientProxiedBy: SFHDAG7NODE3.st.com (10.75.127.21) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-10-14_06:2020-10-14, 2020-10-14 signatures=0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.102.3 at phobos.denx.de X-Virus-Status: Clean |
Series |
stm32: enable logging features
|
expand
|
Hi Patrick On 10/14/20 11:16 AM, Patrick Delaunay wrote: > Define LOG_CATEGORY to allow filtering with log command. > > Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> > --- > > drivers/rtc/stm32_rtc.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c > index f9db318af1..e608ed982f 100644 > --- a/drivers/rtc/stm32_rtc.c > +++ b/drivers/rtc/stm32_rtc.c > @@ -2,6 +2,9 @@ > /* > * Copyright (C) 2019, STMicroelectronics - All Rights Reserved > */ > + > +#define LOG_CATEGORY UCLASS_RTC > + > #include <common.h> > #include <clk.h> > #include <dm.h> Reviewed-by: Patrice Chotard <patrice.chotard@st.com> Thanks
diff --git a/drivers/rtc/stm32_rtc.c b/drivers/rtc/stm32_rtc.c index f9db318af1..e608ed982f 100644 --- a/drivers/rtc/stm32_rtc.c +++ b/drivers/rtc/stm32_rtc.c @@ -2,6 +2,9 @@ /* * Copyright (C) 2019, STMicroelectronics - All Rights Reserved */ + +#define LOG_CATEGORY UCLASS_RTC + #include <common.h> #include <clk.h> #include <dm.h>
Define LOG_CATEGORY to allow filtering with log command. Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> --- drivers/rtc/stm32_rtc.c | 3 +++ 1 file changed, 3 insertions(+)