summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2010-10-07 18:20:16 +0000
committerpjd <pjd@FreeBSD.org>2010-10-07 18:20:16 +0000
commit74e7b90374cfc361a4e9f628756afe66c25ddecd (patch)
tree79aa472ab48417c69bb62f68501d962aade430c3
parent3293cba127d45cdf828b9cbdffbe7fdbfa00b989 (diff)
downloadFreeBSD-src-74e7b90374cfc361a4e9f628756afe66c25ddecd.zip
FreeBSD-src-74e7b90374cfc361a4e9f628756afe66c25ddecd.tar.gz
Log error message when we fail to destroy ggate provider.
MFC after: 3 days
-rw-r--r--sbin/hastd/primary.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sbin/hastd/primary.c b/sbin/hastd/primary.c
index 27f43ca..238af1e 100644
--- a/sbin/hastd/primary.c
+++ b/sbin/hastd/primary.c
@@ -242,7 +242,8 @@ cleanup(struct hast_resource *res)
ggiod.gctl_unit = res->hr_ggateunit;
ggiod.gctl_force = 1;
if (ioctl(res->hr_ggatefd, G_GATE_CMD_DESTROY, &ggiod) < 0) {
- pjdlog_warning("Unable to destroy hast/%s device",
+ pjdlog_errno(LOG_WARNING,
+ "Unable to destroy hast/%s device",
res->hr_provname);
}
res->hr_ggateunit = -1;
OpenPOWER on IntegriCloud