summaryrefslogtreecommitdiff
path: root/sys/dev/ata/ata-raid.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2002-03-16 15:55:20 +0000
committerSøren Schmidt <sos@FreeBSD.org>2002-03-16 15:55:20 +0000
commit698d5a2c845d093c31ec842378efaf43f880e509 (patch)
tree4d0455c17065d175a72c3bca6983552a129777e8 /sys/dev/ata/ata-raid.c
parente1a86e393c2d68620c5546d335848620db52be21 (diff)
Notes
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
-rw-r--r--sys/dev/ata/ata-raid.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c
index c48d39cd0e70..98eb180144eb 100644
--- a/sys/dev/ata/ata-raid.c
+++ b/sys/dev/ata/ata-raid.c
@@ -636,8 +636,9 @@ ar_rebuild(void *arg)
rdp->lock_end = rdp->lock_start + size;
splx(s);
wakeup(rdp);
- sprintf(rdp->pid->p_comm, "rebuilding ar%d %lld%%",
- rdp->lun, 100*rdp->lock_start/(rdp->total_sectors/rdp->width));
+ sprintf(rdp->pid->p_comm, "rebuilding ar%d %lld%%", rdp->lun,
+ (unsigned long long)(100 * rdp->lock_start /
+ (rdp->total_sectors / rdp->width)));
}
free(buffer, M_AR);
for (disk = 0; disk < rdp->total_disks; disk++) {