diff options
| author | Max Laier <mlaier@FreeBSD.org> | 2006-03-06 16:02:06 +0000 |
|---|---|---|
| committer | Max Laier <mlaier@FreeBSD.org> | 2006-03-06 16:02:06 +0000 |
| commit | 3e3a2a7ddced80e0f1651382911a63b262202029 (patch) | |
| tree | c110f87087707ad642b3ae334212e17b45987c45 /sys/dev/ata | |
| parent | 4ffbe6ba9fa015feef51e29ab7c52f2863a50731 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata-disk.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c index 390ec9d57c2aa..1bf47507c534e 100644 --- a/sys/dev/ata/ata-disk.c +++ b/sys/dev/ata/ata-disk.c @@ -366,7 +366,7 @@ ad_describe(device_t dev) } device_printf(dev, "%juMB <%s%s %.8s> at ata%d-%s %s%s\n", - (unsigned long long)(adp->total_secs / (1048576 / DEV_BSIZE)), + (uintmax_t)(adp->total_secs / (1048576 / DEV_BSIZE)), vendor, product, atadev->param.revision, device_get_unit(ch->dev), (atadev->unit == ATA_MASTER) ? "master" : "slave", @@ -375,8 +375,8 @@ ad_describe(device_t dev) if (bootverbose) { device_printf(dev, "%ju sectors [%juC/%dH/%dS] " "%d sectors/interrupt %d depth queue\n", - (unsigned long long)adp->total_secs, - (unsigned long long)(adp->total_secs / + (uintmax_t)adp->total_secs, + (uintmax_t)(adp->total_secs / (adp->heads * adp->sectors)), adp->heads, adp->sectors, atadev->max_iosize / DEV_BSIZE, adp->num_tags + 1); |
