Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Mar 2017 18:43:00 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r315208 - head/sys/cddl/dev/dtrace
Message-ID:  <201703131843.v2DIh0Pv091963@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: markj
Date: Mon Mar 13 18:43:00 2017
New Revision: 315208
URL: https://svnweb.freebsd.org/changeset/base/315208

Log:
  Fix a backwards comparison in the code to dump a DTrace debug buffer.
  
  PR:		217739
  MFC after:	1 week

Modified:
  head/sys/cddl/dev/dtrace/dtrace_debug.c

Modified: head/sys/cddl/dev/dtrace/dtrace_debug.c
==============================================================================
--- head/sys/cddl/dev/dtrace/dtrace_debug.c	Mon Mar 13 18:05:31 2017	(r315207)
+++ head/sys/cddl/dev/dtrace/dtrace_debug.c	Mon Mar 13 18:43:00 2017	(r315208)
@@ -106,7 +106,7 @@ dtrace_debug_output(void)
 
 			for (p = d->first; p < d->next; p++)
 				*p1++ = *p;
-		} else if (d->next > d->first) {
+		} else if (d->first > d->next) {
 			char *p1 = dtrace_debug_bufr;
 
 			count = (uintptr_t) d->last - (uintptr_t) d->first;



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