svn commit: r285608 - stable/10/sys/dev/watchdog

Christian Brueffer brueffer at FreeBSD.org
Wed Jul 15 17:43:14 UTC 2015


Author: brueffer
Date: Wed Jul 15 17:43:13 2015
New Revision: 285608
URL: https://svnweb.freebsd.org/changeset/base/285608

Log:
  MFC: r261495 by ed
  
  Use right buffer to print to.
  
  PR:		kern/176597
  Submitted by:	Christoph Mallon <christoph mallon gmx de>
  Approved by:	re (gjb)

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

Modified: stable/10/sys/dev/watchdog/watchdog.c
==============================================================================
--- stable/10/sys/dev/watchdog/watchdog.c	Wed Jul 15 17:36:35 2015	(r285607)
+++ stable/10/sys/dev/watchdog/watchdog.c	Wed Jul 15 17:43:13 2015	(r285608)
@@ -226,7 +226,7 @@ wd_timeout_cb(void *arg)
 #ifdef DDB
 	if ((wd_pretimeout_act & WD_SOFT_DDB)) {
 		char kdb_why[80];
-		snprintf(kdb_why, sizeof(buf), "watchdog %s timeout", type);
+		snprintf(kdb_why, sizeof(kdb_why), "watchdog %s timeout", type);
 		kdb_backtrace();
 		kdb_enter(KDB_WHY_WATCHDOG, kdb_why);
 	}


More information about the svn-src-stable-10 mailing list