diff options
author | pjd <pjd@FreeBSD.org> | 2011-01-22 23:30:01 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2011-01-22 23:30:01 +0000 |
commit | 376c59ffe9363028f11ed3ebba30e62bf03f9f7d (patch) | |
tree | 749001131d2cbcb70a18d3ae7ef41b424afb846f | |
parent | 9eac5e09d6b3dfca6638f8b1aa34da86a232a37c (diff) | |
download | FreeBSD-src-376c59ffe9363028f11ed3ebba30e62bf03f9f7d.zip FreeBSD-src-376c59ffe9363028f11ed3ebba30e62bf03f9f7d.tar.gz |
Add missing logs.
MFC after: 1 week
-rw-r--r-- | sbin/hastd/control.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sbin/hastd/control.c b/sbin/hastd/control.c index eb689e1..eab7a9e 100644 --- a/sbin/hastd/control.c +++ b/sbin/hastd/control.c @@ -159,12 +159,13 @@ control_status_worker(struct hast_resource *res, struct nv *nvout, nv_add_uint8(cnvout, HASTCTL_STATUS, "cmd"); error = nv_error(cnvout); if (error != 0) { - /* LOG */ + pjdlog_common(LOG_ERR, 0, error, + "Unable to prepare control header"); goto end; } if (hast_proto_send(res, res->hr_ctrl, cnvout, NULL, 0) < 0) { error = errno; - /* LOG */ + pjdlog_errno(LOG_ERR, "Unable to send control header"); goto end; } @@ -173,7 +174,7 @@ control_status_worker(struct hast_resource *res, struct nv *nvout, */ if (hast_proto_recv_hdr(res->hr_ctrl, &cnvin) < 0) { error = errno; - /* LOG */ + pjdlog_errno(LOG_ERR, "Unable to receive control header"); goto end; } @@ -183,7 +184,7 @@ control_status_worker(struct hast_resource *res, struct nv *nvout, if ((str = nv_get_string(cnvin, "status")) == NULL) { error = ENOENT; - /* LOG */ + pjdlog_errno(LOG_ERR, "Field 'status' is missing."); goto end; } nv_add_string(nvout, str, "status%u", no); |