aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2023-12-04 13:37:18 -0500
committerTom Rini <trini@konsulko.com>2023-12-04 13:37:18 -0500
commite37e6f181e3878598ead08872b86dde27f800fd4 (patch)
treedebd72e3d70b141d40a15130a3404ead2dca5f50
parent5c4e9d0c74a8c2f8d0f4e0ab9cf44959298c2bad (diff)
parenta341a0e01f8087904eccbf3fe7baba63a62f9674 (diff)
downloadu-boot-e37e6f181e3878598ead08872b86dde27f800fd4.zip
u-boot-e37e6f181e3878598ead08872b86dde27f800fd4.tar.gz
u-boot-e37e6f181e3878598ead08872b86dde27f800fd4.tar.bz2
Merge branch 'master' of https://source.denx.de/u-boot/custodians/u-boot-watchdog
- Correct watchdog timeout print message (Chanho Park)
-rw-r--r--drivers/watchdog/wdt-uclass.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/watchdog/wdt-uclass.c b/drivers/watchdog/wdt-uclass.c
index ed32928..417e8d7 100644
--- a/drivers/watchdog/wdt-uclass.c
+++ b/drivers/watchdog/wdt-uclass.c
@@ -7,6 +7,7 @@
#include <common.h>
#include <cyclic.h>
+#include <div64.h>
#include <dm.h>
#include <errno.h>
#include <hang.h>
@@ -141,7 +142,7 @@ int wdt_start(struct udevice *dev, u64 timeout_ms, ulong flags)
printf("WDT: Started %s with%s servicing %s (%ds timeout)\n",
dev->name, IS_ENABLED(CONFIG_WATCHDOG) ? "" : "out",
- str, priv->timeout);
+ str, (u32)lldiv(timeout_ms, 1000));
}
return ret;