summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-03-18 02:40:40 +0000
committerimp <imp@FreeBSD.org>2003-03-18 02:40:40 +0000
commit3b5aac966deef94a178eb068e27849bc3dd95ce8 (patch)
treec5feecd6b070ecdae5ee360d89d16268770367de
parentc6440201e0d22a183f6c872dc9aa82cec7333dd0 (diff)
downloadFreeBSD-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.
-rw-r--r--sys/dev/pccard/pccard.c8
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);
OpenPOWER on IntegriCloud