Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Apr 2017 06:29:02 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r317486 - stable/11/sys/dev/watchdog
Message-ID:  <201704270629.v3R6T2NM002732@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Thu Apr 27 06:29:02 2017
New Revision: 317486
URL: https://svnweb.freebsd.org/changeset/base/317486

Log:
  MFC r317185: Some cosmetic polishing for pre-timeouts.

Modified:
  stable/11/sys/dev/watchdog/watchdog.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/dev/watchdog/watchdog.c
==============================================================================
--- stable/11/sys/dev/watchdog/watchdog.c	Thu Apr 27 06:28:12 2017	(r317485)
+++ stable/11/sys/dev/watchdog/watchdog.c	Thu Apr 27 06:29:02 2017	(r317486)
@@ -229,13 +229,13 @@ wd_timeout_cb(void *arg)
 #ifdef DDB
 	if ((wd_pretimeout_act & WD_SOFT_DDB)) {
 		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_enter(KDB_WHY_WATCHDOG, kdb_why);
 	}
 #endif
 	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))
 		printf("watchdog %s-timeout, WD_SOFT_PRINTF\n", type);
 	if ((wd_pretimeout_act & WD_SOFT_PANIC))
@@ -292,8 +292,7 @@ wd_set_pretimeout(int newtimeout, int di
 
 	/* We determined the value is sane, so reset the callout */
 	(void) callout_reset(&wd_pretimeo_handle,
-	    timeout_ticks,
-	    wd_timeout_cb, "pre-timeout");
+	    timeout_ticks, wd_timeout_cb, "pre");
 	wd_pretimeout = newtimeout;
 	return 0;
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201704270629.v3R6T2NM002732>