svn commit: r225783 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Tue Sep 27 07:59:11 UTC 2011
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);
More information about the svn-src-head
mailing list