Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Feb 2011 17:01:26 +0000 (UTC)
From:      Ulrich Spoerlein <uqs@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r218196 - head/lib/libkvm
Message-ID:  <201102021701.p12H1Qsf015855@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: uqs
Date: Wed Feb  2 17:01:26 2011
New Revision: 218196
URL: http://svn.freebsd.org/changeset/base/218196

Log:
  libkvm: fix logic inversion introduced with last commit
  
  Reported by:	Brandon Gooch <jamesbrandongooch@gmail.com>
  Pointy hat to:	uqs

Modified:
  head/lib/libkvm/kvm.c

Modified: head/lib/libkvm/kvm.c
==============================================================================
--- head/lib/libkvm/kvm.c	Wed Feb  2 16:35:10 2011	(r218195)
+++ head/lib/libkvm/kvm.c	Wed Feb  2 17:01:26 2011	(r218196)
@@ -454,11 +454,11 @@ again:
 			p->n_other = 0;
 			p->n_desc = 0;
 			if (_kvm_vnet_initialized(kd, initialize) &&
-			    !strcmp(prefix, VNET_SYMPREFIX) == 0)
+			    strcmp(prefix, VNET_SYMPREFIX) == 0)
 				p->n_value =
 				    _kvm_vnet_validaddr(kd, lookup.symvalue);
 			else if (_kvm_dpcpu_initialized(kd, initialize) &&
-			    !strcmp(prefix, DPCPU_SYMPREFIX) == 0)
+			    strcmp(prefix, DPCPU_SYMPREFIX) == 0)
 				p->n_value =
 				    _kvm_dpcpu_validaddr(kd, lookup.symvalue);
 			else



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