The error message for unexpected TRNG version print out the reg offset instead of the expected reg value.
Use the TRNG_v1_VERSION_CODE constant to correct the error message, also add the missing new line at end of the message. Signed-off-by: Jonas Karlman <[email protected]> --- drivers/rng/rockchip_rng.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/rng/rockchip_rng.c b/drivers/rng/rockchip_rng.c index 8cf750e043cf..178a76c09347 100644 --- a/drivers/rng/rockchip_rng.c +++ b/drivers/rng/rockchip_rng.c @@ -200,8 +200,8 @@ static int rk_trngv1_init(struct udevice *dev) version = trng_read(pdata, TRNG_V1_VERSION); if (version != TRNG_v1_VERSION_CODE) { - printf("wrong trng version, expected = %08x, actual = %08x", - TRNG_V1_VERSION, version); + printf("wrong trng version, expected = %08x, actual = %08x\n", + TRNG_v1_VERSION_CODE, version); return -EFAULT; } -- 2.55.0
