Skip to content
  • Enrico Weigelt's avatar
    modesetting: fix int size mismatch · 37b9b9a8
    Enrico Weigelt authored and Marge Bot's avatar Marge Bot committed
    
    
    GCC repors:
    
    ../hw/xfree86/drivers/modesetting/drmmode_display.c:4135:49: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 5 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=]
     4135 |                            "Gamma ramp set to %ld entries on CRTC %d\n",
          |                                               ~~^
          |                                                 |
          |                                                 long int
          |                                               %lld
     4136 |                            size, num);
          |                            ~~~~
          |                            |
          |                            uint64_t {aka long long unsigned int}
    ../hw/xfree86/drivers/modesetting/drmmode_display.c:4139:57: warning: format ‘%ld’ expects argument of type ‘long int’, but argument 4 has type ‘uint64_t’ {aka ‘long long unsigned int’} [-Wformat=]
     4139 |                        "Failed to allocate memory for %ld gamma ramp entries "
          |                                                       ~~^
          |                                                         |
          |                                                         long int
          |                                                       %lld
     4140 |                        "on CRTC %d.\n",
     4141 |                        size, num);
          |                        ~~~~
          |                        |
          |                        uint64_t {aka long long unsigned int}
    
    Signed-off-by: Enrico Weigelt's avatarEnrico Weigelt, metux IT consult <info@metux.net>
    Part-of: <!1257>
    37b9b9a8