]> git.dujemihanovic.xyz Git - u-boot.git/commit
watchdog: Correct watchdog timeout print message
authorChanho Park <chanho61.park@samsung.com>
Sun, 3 Dec 2023 08:30:40 +0000 (17:30 +0900)
committerStefan Roese <sr@denx.de>
Mon, 4 Dec 2023 07:09:09 +0000 (08:09 +0100)
commita341a0e01f8087904eccbf3fe7baba63a62f9674
treedebd72e3d70b141d40a15130a3404ead2dca5f50
parent5c4e9d0c74a8c2f8d0f4e0ab9cf44959298c2bad
watchdog: Correct watchdog timeout print message

The wdt_start function takes timeout_ms as a parameter and starts the
watchdog with this value. However, when you output the message, it shows
the default timeout value for the watchdog device.
So this patch fixes that part to output the correct timeout value.

Before -->
StarFive # wdt start 3000
WDT:   Started watchdog@13070000 without servicing  (60s timeout)

After -->
StarFive # wdt start 3000
WDT:   Started watchdog@13070000 without servicing  (3s timeout)

Fixes: c2fd0ca1a822 ("watchdog: Integrate watchdog triggering into the cyclic framework")
Signed-off-by: Chanho Park <chanho61.park@samsung.com>
Reviewed-by: Stefan Roese <sr@denx.de>
drivers/watchdog/wdt-uclass.c