mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
tpm: Use logging in the uclass
Update this to use log_debug() instead of the old debug(). Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
This commit is contained in:
@@ -4,6 +4,8 @@
|
|||||||
* Written by Simon Glass <sjg@chromium.org>
|
* Written by Simon Glass <sjg@chromium.org>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#define LOG_CATEGORY UCLASS_TPM
|
||||||
|
|
||||||
#include <common.h>
|
#include <common.h>
|
||||||
#include <dm.h>
|
#include <dm.h>
|
||||||
#include <log.h>
|
#include <log.h>
|
||||||
@@ -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);
|
ordinal = get_unaligned_be32(sendbuf + TPM_CMD_ORDINAL_BYTE);
|
||||||
|
|
||||||
if (count == 0) {
|
if (count == 0) {
|
||||||
debug("no data\n");
|
log_debug("no data\n");
|
||||||
return -ENODATA;
|
return -ENODATA;
|
||||||
}
|
}
|
||||||
if (count > send_size) {
|
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;
|
return -E2BIG;
|
||||||
}
|
}
|
||||||
|
|
||||||
debug("%s: Calling send\n", __func__);
|
log_debug("%s: Calling send\n", __func__);
|
||||||
ret = ops->send(dev, sendbuf, send_size);
|
ret = ops->send(dev, sendbuf, send_size);
|
||||||
if (ret < 0)
|
if (ret < 0)
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user