Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Sep 2011 07:59:11 +0000 (UTC)
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r225783 - head/sbin/hastd
Message-ID:  <201109270759.p8R7xBZU011674@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pjd
Date: Tue Sep 27 07:59:10 2011
New Revision: 225783
URL: http://svn.freebsd.org/changeset/base/225783

Log:
  Correct two mistakes when converting asserts to PJDLOG_ASSERT()/PJDLOG_ABORT().
  
  MFC after:	3 days

Modified:
  head/sbin/hastd/primary.c

Modified: head/sbin/hastd/primary.c
==============================================================================
--- head/sbin/hastd/primary.c	Tue Sep 27 07:57:15 2011	(r225782)
+++ head/sbin/hastd/primary.c	Tue Sep 27 07:59:10 2011	(r225783)
@@ -1421,8 +1421,7 @@ remote_send_thread(void *arg)
 			length = 0;
 			break;
 		default:
-			PJDLOG_ASSERT(!"invalid condition");
-			abort();
+			PJDLOG_ABORT("invalid condition");
 		}
 		nv = nv_alloc();
 		nv_add_uint8(nv, cmd, "cmd");
@@ -1621,8 +1620,7 @@ remote_recv_thread(void *arg)
 		case BIO_FLUSH:
 			break;
 		default:
-			PJDLOG_ASSERT(!"invalid condition");
-			abort();
+			PJDLOG_ABORT("invalid condition");
 		}
 		hio->hio_errors[ncomp] = 0;
 		nv_free(nv);



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