[PATCH] Fix build and silence warnings

Michel Dänzer michel at daenzer.net
Sun Aug 9 02:42:06 PDT 2009


On Sat, 2009-08-08 at 22:00 -0400, Matt Turner wrote:
> 
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index d93a40b..e28140e 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -412,7 +412,7 @@ Bool RADEONPreInit_KMS(ScrnInfoPtr pScrn, int flags)
>  	    info->vram_size = mminfo.vram_visible;
>  	    info->gart_size = mminfo.gart_size;
>  	    xf86DrvMsg(pScrn->scrnIndex, X_INFO,
> -		       "mem size init: gart size :%llx vram size: s:%llx visible:%llx\n",
> +		       "mem size init: gart size :%lx vram size: s:%lx visible:%lx\n",
>  		       mminfo.gart_size, mminfo.vram_size, mminfo.vram_visible);
>  	}
>      }

Presumably you're building on 64 bit - this change introduces warnings
on 32 bit instead...

If there's no format specifier which works for uint64_t on both, maybe
casting the parameters to unsigned long long works.


-- 
Earthling Michel Dänzer           |                http://www.vmware.com
Libre software enthusiast         |          Debian, X and DRI developer


More information about the xorg-driver-ati mailing list