summaryrefslogtreecommitdiffstats
path: root/sys/geom/raid3
diff options
context:
space:
mode:
authorpjd <pjd@FreeBSD.org>2006-09-16 09:48:29 +0000
committerpjd <pjd@FreeBSD.org>2006-09-16 09:48:29 +0000
commit4f982725d1de88af7f42c6b83899fe7e339cfb36 (patch)
tree68d1eefe9dd203002475230a43a75a9a6be8dc2a /sys/geom/raid3
parent7eae1b3fd563e016a2aefbcf22a125bf17e0e52f (diff)
downloadFreeBSD-src-4f982725d1de88af7f42c6b83899fe7e339cfb36.zip
FreeBSD-src-4f982725d1de88af7f42c6b83899fe7e339cfb36.tar.gz
Small fixes after adding __printflike() to gctl_error().
Approved by: phk MFC after: 3 days
Diffstat (limited to 'sys/geom/raid3')
-rw-r--r--sys/geom/raid3/g_raid3_ctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/geom/raid3/g_raid3_ctl.c b/sys/geom/raid3/g_raid3_ctl.c
index 2e80390..7847e29 100644
--- a/sys/geom/raid3/g_raid3_ctl.c
+++ b/sys/geom/raid3/g_raid3_ctl.c
@@ -274,7 +274,7 @@ g_raid3_ctl_rebuild(struct gctl_req *req, struct g_class *mp)
}
if (disk->d_state == G_RAID3_DISK_STATE_ACTIVE &&
g_raid3_ndisks(sc, G_RAID3_DISK_STATE_ACTIVE) < sc->sc_ndisks) {
- gctl_error(req, "There is one stale disk already.", name);
+ gctl_error(req, "There is one stale disk already.");
sx_xunlock(&sc->sc_lock);
return;
}
@@ -446,7 +446,7 @@ g_raid3_ctl_insert(struct gctl_req *req, struct g_class *mp)
disk = &sc->sc_disks[*no];
if (disk->d_state != G_RAID3_DISK_STATE_NODISK) {
sx_xunlock(&sc->sc_lock);
- gctl_error(req, "Component %u is already connected.", *no);
+ gctl_error(req, "Component %jd is already connected.", *no);
goto end;
}
if (((sc->sc_sectorsize / (sc->sc_ndisks - 1)) % pp->sectorsize) != 0) {
@@ -542,7 +542,7 @@ g_raid3_ctl_remove(struct gctl_req *req, struct g_class *mp)
*/
if (g_raid3_ndisks(sc, G_RAID3_DISK_STATE_ACTIVE) <
sc->sc_ndisks) {
- gctl_error(req, "Cannot replace component number %u.",
+ gctl_error(req, "Cannot replace component number %jd.",
*no);
break;
}
@@ -561,7 +561,7 @@ g_raid3_ctl_remove(struct gctl_req *req, struct g_class *mp)
case G_RAID3_DISK_STATE_NODISK:
break;
default:
- gctl_error(req, "Cannot replace component number %u.", *no);
+ gctl_error(req, "Cannot replace component number %jd.", *no);
break;
}
sx_xunlock(&sc->sc_lock);
OpenPOWER on IntegriCloud