diff options
author | imp <imp@FreeBSD.org> | 2003-03-18 02:40:40 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2003-03-18 02:40:40 +0000 |
commit | 3b5aac966deef94a178eb068e27849bc3dd95ce8 (patch) | |
tree | c5feecd6b070ecdae5ee360d89d16268770367de /sys | |
parent | c6440201e0d22a183f6c872dc9aa82cec7333dd0 (diff) | |
download | FreeBSD-src-3b5aac966deef94a178eb068e27849bc3dd95ce8.zip FreeBSD-src-3b5aac966deef94a178eb068e27849bc3dd95ce8.tar.gz |
Use %jd and a cast to intmax_t instead of a cast to long.
Minor style nit while I'm here.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pccard/pccard.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index 6c82632..5dccdf2 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -295,8 +295,8 @@ pccard_detach_card(device_t dev) static const struct pccard_product * pccard_do_product_lookup(device_t bus, device_t dev, - const struct pccard_product *tab, size_t ent_size, - pccard_product_match_fn matchfn) + const struct pccard_product *tab, size_t ent_size, + pccard_product_match_fn matchfn) { const struct pccard_product *ent; int matches; @@ -308,8 +308,8 @@ pccard_do_product_lookup(device_t bus, device_t dev, #ifdef DIAGNOSTIC if (sizeof *ent > ent_size) - panic("pccard_product_lookup: bogus ent_size %ld", - (long) ent_size); + panic("pccard_product_lookup: bogus ent_size %jd", + (intmax_t) ent_size); #endif if (pccard_get_vendor(dev, &vendor)) return (NULL); |