Skip to content
  • Chanho Park's avatar
    watchdog: Correct watchdog timeout print message · a341a0e0
    Chanho Park authored and Stefan Roese's avatar Stefan Roese committed
    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: c2fd0ca1
    
     ("watchdog: Integrate watchdog triggering into the cyclic framework")
    Signed-off-by: default avatarChanho Park <chanho61.park@samsung.com>
    Reviewed-by: default avatarStefan Roese <sr@denx.de>
    a341a0e0