From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ilias Apalodimas Date: Mon, 25 Jan 2021 10:26:20 +0200 Subject: [PATCH v3 02/11] tpm: Use logging in the uclass In-Reply-To: <20210123172607.2879600-3-sjg@chromium.org> References: <20210123172607.2879600-1-sjg@chromium.org> <20210123172607.2879600-3-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Jan 23, 2021 at 10:25:58AM -0700, Simon Glass wrote: > Update this to use log_debug() instead of the old debug(). > > Signed-off-by: Simon Glass > --- > > (no changes since v1) > > drivers/tpm/tpm-uclass.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/tpm/tpm-uclass.c b/drivers/tpm/tpm-uclass.c > index beb0fa3f93c..35774a6289e 100644 > --- a/drivers/tpm/tpm-uclass.c > +++ b/drivers/tpm/tpm-uclass.c > @@ -4,6 +4,8 @@ > * Written by Simon Glass > */ > > +#define LOG_CATEGORY UCLASS_TPM > + > #include > #include > #include > @@ -87,15 +89,15 @@ int tpm_xfer(struct udevice *dev, const uint8_t *sendbuf, size_t send_size, > ordinal = get_unaligned_be32(sendbuf + TPM_CMD_ORDINAL_BYTE); > > if (count == 0) { > - debug("no data\n"); > + log_debug("no data\n"); > return -ENODATA; > } > if (count > send_size) { > - debug("invalid count value %x %zx\n", count, send_size); > + log_debug("invalid count value %x %zx\n", count, send_size); > return -E2BIG; > } > > - debug("%s: Calling send\n", __func__); > + log_debug("%s: Calling send\n", __func__); > ret = ops->send(dev, sendbuf, send_size); > if (ret < 0) > return ret; > -- > 2.30.0.280.ga3ce27912f-goog > Reviewed-by: Ilias Apalodimas