[PATCH 1/3] drm: Use resource_size_t for drm_get_resource_{start, len}

Benjamin Herrenschmidt benh at kernel.crashing.org
Tue Feb 3 07:36:28 EST 2009


>    2009-02-02 14:16:04.000000000 +1100
> > @@ -599,8 +599,8 @@ int savage_driver_firstopen(struct drm_d
> >                            drm_mtrr_add(dev_priv->mtrr[2].base,
> >                                         dev_priv->mtrr[2].size, DRM_MTRR_WC);
> >                } else {
> > -                       DRM_ERROR("strange pci_resource_len %08lx\n",
> > -                                 drm_get_resource_len(dev, 0));
> > +                       DRM_ERROR("strange pci_resource_len %08llx\n",
> > +                                 (unsigned long long)drm_get_resource_len(dev, 0));
> 
> Don't we have a printk specifier for this now?

If we do I've missed it. We have a specifier for a struct resource *,
but not for an individual resource_size_t afaik.

Cheers,
Ben.





More information about the Linuxppc-dev mailing list