From 3b5aac966deef94a178eb068e27849bc3dd95ce8 Mon Sep 17 00:00:00 2001 From: imp Date: Tue, 18 Mar 2003 02:40:40 +0000 Subject: Use %jd and a cast to intmax_t instead of a cast to long. Minor style nit while I'm here. --- sys/dev/pccard/pccard.c | 8 ++++---- 1 file 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); -- cgit v1.1