From 79e82fe2900d04e790e850cdedc76e35861c2db6 Mon Sep 17 00:00:00 2001 From: Pawel Jakub Dawidek Date: Sat, 22 Jan 2011 23:30:01 +0000 Subject: [PATCH] Add missing logs. MFC after: 1 week --- sbin/hastd/control.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/sbin/hastd/control.c b/sbin/hastd/control.c index eb689e117833..eab7a9e1d57b 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);