summaryrefslogtreecommitdiffstats
path: root/sbin/hastd/secondary.c
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2011-09-27 07:57:15 +0000
committerpjd <pjd@FreeBSD.org>2011-09-27 07:57:15 +0000
commit26b0e1eedd0a8adf257ee4b8b661780f92d22bcf (patch)
tree95bd2828c92c5bc3bd22be047dd7280727d08682 /sbin/hastd/secondary.c
parentff11c3069e6db5789566bf2006ba6c8976c45e7c (diff)
downloadFreeBSD-src-26b0e1eedd0a8adf257ee4b8b661780f92d22bcf.zip
FreeBSD-src-26b0e1eedd0a8adf257ee4b8b661780f92d22bcf.tar.gz
Prefer PJDLOG_ASSERT() and PJDLOG_ABORT() over assert() and abort().
pjdlog versions will log problem to syslog when application is running in background. MFC after: 3 days
Diffstat (limited to 'sbin/hastd/secondary.c')
-rw-r--r--sbin/hastd/secondary.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/hastd/secondary.c b/sbin/hastd/secondary.c
index 7120d3d..fc0c898 100644
--- a/sbin/hastd/secondary.c
+++ b/sbin/hastd/secondary.c
@@ -791,8 +791,8 @@ send_thread(void *arg)
length = 0;
break;
default:
- abort();
- break;
+ PJDLOG_ABORT("Unexpected command (cmd=%hhu).",
+ hio->hio_cmd);
}
if (hio->hio_error != 0)
nv_add_int16(nvout, hio->hio_error, "error");
OpenPOWER on IntegriCloud