diff options
author | sos <sos@FreeBSD.org> | 2002-03-16 15:55:20 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-03-16 15:55:20 +0000 |
commit | 2b25f973e2c2bd3048b444a4bc0b5ce371dcf742 (patch) | |
tree | 4d0455c17065d175a72c3bca6983552a129777e8 /sys/dev/ata/ata-raid.c | |
parent | 7a533342ff33e5d27fc90dc03cb0469c1cbbb8bb (diff) | |
download | FreeBSD-src-2b25f973e2c2bd3048b444a4bc0b5ce371dcf742.zip FreeBSD-src-2b25f973e2c2bd3048b444a4bc0b5ce371dcf742.tar.gz |
Fix 64bit arch problems.
Diffstat (limited to 'sys/dev/ata/ata-raid.c')
-rw-r--r-- | sys/dev/ata/ata-raid.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/dev/ata/ata-raid.c b/sys/dev/ata/ata-raid.c index c48d39c..98eb180 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++) { |