[PATCH] kms: Fix warning XNFprintf is deprecated
Alex Deucher
alexdeucher at gmail.com
Fri Feb 25 15:20:51 PST 2011
Pushed a variant of this without breaking pre-1.10 xservers.
cb4dc7ab66016d0c980800f8dbf71bbe993889d3
On Fri, Feb 25, 2011 at 4:07 PM, Sedat Dilek <sedat.dilek at googlemail.com> wrote:
> Noticed when building ati/radeon ddx against xserver 1.10-rc3.
>
> [ build.log ]
> ../../src/radeon_kms.c:412:5: warning: 'XNFprintf' is deprecated (declared at /usr/include/xorg/os.h:273)
>
> Signed-off-by: Sedat Dilek <sedat.dilek at gmail.com>
> ---
> src/radeon_kms.c | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/src/radeon_kms.c b/src/radeon_kms.c
> index 158dc57..19b0c74 100644
> --- a/src/radeon_kms.c
> +++ b/src/radeon_kms.c
> @@ -409,7 +409,7 @@ static Bool radeon_open_drm_master(ScrnInfoPtr pScrn)
> goto out;
> }
>
> - busid = XNFprintf("pci:%04x:%02x:%02x.%d",
> + busid = XNFasprintf("pci:%04x:%02x:%02x.%d",
> dev->domain, dev->bus, dev->dev, dev->func);
>
> info->dri2.drm_fd = drmOpen("radeon", busid);
> --
> 1.7.4.1
>
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel
>
More information about the xorg-driver-ati
mailing list