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

Ben Widawsky ben at bwidawsk.net
Fri Apr 28 18:20:22 UTC 2017


Fix kmscube -A on i915 :P

On 17-04-28 14:17:34, Rob Clark wrote:
>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)
>
>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


More information about the mesa-dev mailing list