Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Feb 2014 20:52:34 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r261495 - head/sys/dev/watchdog
Message-ID:  <201402042052.s14KqYXT053347@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Tue Feb  4 20:52:33 2014
New Revision: 261495
URL: http://svnweb.freebsd.org/changeset/base/261495

Log:
  Use right buffer to print to.
  
  PR:		kern/176597
  Submitted by:	Christoph Mallon <christoph mallon gmx de>
  MFC after:	2 weeks

Modified:
  head/sys/dev/watchdog/watchdog.c

Modified: head/sys/dev/watchdog/watchdog.c
==============================================================================
--- head/sys/dev/watchdog/watchdog.c	Tue Feb  4 18:54:33 2014	(r261494)
+++ head/sys/dev/watchdog/watchdog.c	Tue Feb  4 20:52:33 2014	(r261495)
@@ -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);
 	}



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