svn commit: r217737 - head/sbin/hastd
Pawel Jakub Dawidek
pjd at FreeBSD.org
Sat Jan 22 23:30:02 UTC 2011
Author: pjd
Date: Sat Jan 22 23:30:01 2011
New Revision: 217737
URL: http://svn.freebsd.org/changeset/base/217737
Log:
Add missing logs.
MFC after: 1 week
Modified:
head/sbin/hastd/control.c
Modified: head/sbin/hastd/control.c
==============================================================================
--- head/sbin/hastd/control.c Sat Jan 22 23:26:05 2011 (r217736)
+++ head/sbin/hastd/control.c Sat Jan 22 23:30:01 2011 (r217737)
@@ -159,12 +159,13 @@ control_status_worker(struct hast_resour
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_resour
*/
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_resour
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);
More information about the svn-src-all
mailing list