hw/xwin: printf format fixes for Pixel type
Pixel is CARD32, so inside the server has type unsigned int (x86_64) or unsigned long (x86) Cast to unsigned int and use a %u format Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk> Reviewed-by: Colin Harrison <colin.harrison@virgin.net>
This commit is contained in:
parent
e3cfeb949a
commit
0cd228073a
|
@ -360,8 +360,8 @@ winGetPaletteDIB(ScreenPtr pScreen, ColormapPtr pcmap)
|
||||||
nBlue = rgbColors[i].rgbBlue << 8;
|
nBlue = rgbColors[i].rgbBlue << 8;
|
||||||
|
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winGetPaletteDIB - Allocating a color: %d; "
|
winDebug("winGetPaletteDIB - Allocating a color: %u; "
|
||||||
"%d %d %d\n", pixel, nRed, nGreen, nBlue);
|
"%d %d %d\n", (unsigned int)pixel, nRed, nGreen, nBlue);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Allocate a entry in the X colormap */
|
/* Allocate a entry in the X colormap */
|
||||||
|
@ -445,8 +445,8 @@ winGetPaletteDD(ScreenPtr pScreen, ColormapPtr pcmap)
|
||||||
nGreen = ppeColors[i].peGreen << 8;
|
nGreen = ppeColors[i].peGreen << 8;
|
||||||
nBlue = ppeColors[i].peBlue << 8;
|
nBlue = ppeColors[i].peBlue << 8;
|
||||||
#if CYGDEBUG
|
#if CYGDEBUG
|
||||||
winDebug("winGetPaletteDD - Allocating a color: %d; "
|
winDebug("winGetPaletteDD - Allocating a color: %u; "
|
||||||
"%d %d %d\n", pixel, nRed, nGreen, nBlue);
|
"%d %d %d\n", (unsigned int)pixel, nRed, nGreen, nBlue);
|
||||||
#endif
|
#endif
|
||||||
if (AllocColor(pcmap, &nRed, &nGreen, &nBlue, &pixel, 0) != Success) {
|
if (AllocColor(pcmap, &nRed, &nGreen, &nBlue, &pixel, 0) != Success) {
|
||||||
ErrorF("winGetPaletteDD - AllocColor () failed, pixel %d\n", i);
|
ErrorF("winGetPaletteDD - AllocColor () failed, pixel %d\n", i);
|
||||||
|
|
Loading…
Reference in New Issue