Some cosmetic polishing for pre-timeouts.
MFC after: 1 week
This commit is contained in:
parent
4c033a734e
commit
d1025db49e
@ -229,13 +229,13 @@ wd_timeout_cb(void *arg)
|
|||||||
#ifdef DDB
|
#ifdef DDB
|
||||||
if ((wd_pretimeout_act & WD_SOFT_DDB)) {
|
if ((wd_pretimeout_act & WD_SOFT_DDB)) {
|
||||||
char kdb_why[80];
|
char kdb_why[80];
|
||||||
snprintf(kdb_why, sizeof(kdb_why), "watchdog %s timeout", type);
|
snprintf(kdb_why, sizeof(kdb_why), "watchdog %s-timeout", type);
|
||||||
kdb_backtrace();
|
kdb_backtrace();
|
||||||
kdb_enter(KDB_WHY_WATCHDOG, kdb_why);
|
kdb_enter(KDB_WHY_WATCHDOG, kdb_why);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if ((wd_pretimeout_act & WD_SOFT_LOG))
|
if ((wd_pretimeout_act & WD_SOFT_LOG))
|
||||||
log(LOG_EMERG, "watchdog %s-timeout, WD_SOFT_LOG", type);
|
log(LOG_EMERG, "watchdog %s-timeout, WD_SOFT_LOG\n", type);
|
||||||
if ((wd_pretimeout_act & WD_SOFT_PRINTF))
|
if ((wd_pretimeout_act & WD_SOFT_PRINTF))
|
||||||
printf("watchdog %s-timeout, WD_SOFT_PRINTF\n", type);
|
printf("watchdog %s-timeout, WD_SOFT_PRINTF\n", type);
|
||||||
if ((wd_pretimeout_act & WD_SOFT_PANIC))
|
if ((wd_pretimeout_act & WD_SOFT_PANIC))
|
||||||
@ -292,8 +292,7 @@ wd_set_pretimeout(int newtimeout, int disableiftoolong)
|
|||||||
|
|
||||||
/* We determined the value is sane, so reset the callout */
|
/* We determined the value is sane, so reset the callout */
|
||||||
(void) callout_reset(&wd_pretimeo_handle,
|
(void) callout_reset(&wd_pretimeo_handle,
|
||||||
timeout_ticks,
|
timeout_ticks, wd_timeout_cb, "pre");
|
||||||
wd_timeout_cb, "pre-timeout");
|
|
||||||
wd_pretimeout = newtimeout;
|
wd_pretimeout = newtimeout;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user