summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/ata-disk.c
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2006-03-09 08:34:44 +0000
committersos <sos@FreeBSD.org>2006-03-09 08:34:44 +0000
commit2ba86f7da2738cd4764014a50f4e8e0af1642455 (patch)
treecf9c05fb36ae52d08a7fd3e69d14b83fbeaf3db9 /sys/dev/ata/ata-disk.c
parenta84244a660efd4d774dbb65a4c4082f80ea9cd02 (diff)
downloadFreeBSD-src-2ba86f7da2738cd4764014a50f4e8e0af1642455.zip
FreeBSD-src-2ba86f7da2738cd4764014a50f4e8e0af1642455.tar.gz
Get rid of all the "long long"/"maxint" casting around in printf's.
On all our platforms intmax == int64_t so simply using %j to print int64_t's is safe all over, and doesn't pullute the code.
Diffstat (limited to 'sys/dev/ata/ata-disk.c')
-rw-r--r--sys/dev/ata/ata-disk.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/dev/ata/ata-disk.c b/sys/dev/ata/ata-disk.c
index 1bf4750..fb8942e 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",
- (uintmax_t)(adp->total_secs / (1048576 / DEV_BSIZE)),
+ adp->total_secs / (1048576 / DEV_BSIZE),
vendor, product, atadev->param.revision,
device_get_unit(ch->dev),
(atadev->unit == ATA_MASTER) ? "master" : "slave",
@@ -374,10 +374,8 @@ ad_describe(device_t dev)
ata_mode2str(atadev->mode));
if (bootverbose) {
device_printf(dev, "%ju sectors [%juC/%dH/%dS] "
- "%d sectors/interrupt %d depth queue\n",
- (uintmax_t)adp->total_secs,
- (uintmax_t)(adp->total_secs /
- (adp->heads * adp->sectors)),
+ "%d sectors/interrupt %d depth queue\n", adp->total_secs,
+ adp->total_secs / (adp->heads * adp->sectors),
adp->heads, adp->sectors, atadev->max_iosize / DEV_BSIZE,
adp->num_tags + 1);
}
OpenPOWER on IntegriCloud