[Mesa-dev] [PATCH kmscube 1/2] common: use %llx to print modifier

Lucas Stach l.stach at pengutronix.de
Sat Apr 29 09:00:57 UTC 2017


Am Freitag, den 28.04.2017, 14:17 -0400 schrieb Rob Clark:
> I guess this applies on top of one of Ben's in-flight patches?
> Perhaps it can be squashed into that?  (Otherwise remind me about
> this
> when the modifiers patchset is merged)

It applies on top of what is currently in FDO mesa/kmscube. It seems
the modifier patchset has been merged there.

Regards,
Lucas

> BR,
> -R
> 
> On Fri, Apr 28, 2017 at 12:18 PM, Lucas Stach <l.stach at pengutronix.de
> > wrote:
> > Use long long format when printing the format modifier, as a simple
> > long is only 4 bytes on 32bit systems.
> > 
> > Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
> > ---
> >  drm-common.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/drm-common.c b/drm-common.c
> > index 2f2c918596a4..fb4ec7f4389e 100644
> > --- a/drm-common.c
> > +++ b/drm-common.c
> > @@ -73,7 +73,7 @@ struct drm_fb * drm_fb_get_from_bo(struct gbm_bo
> > *bo)
> > 
> >         if (modifiers[0]) {
> >                 flags = DRM_MODE_FB_MODIFIERS;
> > -               printf("Using modifier %lx\n", modifiers[0]);
> > +               printf("Using modifier %llx\n", modifiers[0]);
> >         }
> > 
> >         ret = drmModeAddFB2WithModifiers(drm_fd, width, height,
> > --
> > 2.11.0
> > 
> > _______________________________________________
> > mesa-dev mailing list
> > mesa-dev at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/mesa-dev
> 
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list