diff options
author | mlaier <mlaier@FreeBSD.org> | 2006-03-06 16:02:06 +0000 |
---|---|---|
committer | mlaier <mlaier@FreeBSD.org> | 2006-03-06 16:02:06 +0000 |
commit | 042a9c9ce37225467a4d0b0a5a8198a135aff48c (patch) | |
tree | c110f87087707ad642b3ae334212e17b45987c45 | |
parent | da15630ac20510bd726758f969fd5ba2e086af08 (diff) | |
download | FreeBSD-src-042a9c9ce37225467a4d0b0a5a8198a135aff48c.zip FreeBSD-src-042a9c9ce37225467a4d0b0a5a8198a135aff48c.tar.gz |
Fix the build. %ju prints uintmax_t not unsigned long long (which is
actually "longer" than uintmax_t for the understanding of printf).
-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 390ec9d..1bf4750 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); |