From: Alan Coopersmith <alan.coopersmith@oracle.com>
To: Sedat Dilek <sedat.dilek@googlemail.com>
Cc: Sedat Dilek <sedat.dilek@gmail.com>,
xorg-driver-ati@lists.x.org, dri-devel@lists.freedesktop.org
Subject: Re: [PATCH] kms: Fix warning XNFprintf is deprecated
Date: Sat, 26 Feb 2011 09:08:36 -0800 [thread overview]
Message-ID: <4D693394.5040903@oracle.com> (raw)
In-Reply-To: <4D682E0B.6070704@oracle.com>
On 02/25/11 02:32 PM, Alan Coopersmith wrote:
>> - busid = XNFprintf("pci:%04x:%02x:%02x.%d",
>> + busid = XNFasprintf("pci:%04x:%02x:%02x.%d",
>
> A straight replacement like that, with no #ifdef's will break people building
> for Xorg 1.9 and older, since XNFasprintf is new in Xorg 1.10.
Oops, I failed to notice the other problem with this patch, which was
reported in https://bugs.freedesktop.org/show_bug.cgi?id=34756 - the two
API's are different - the replacement should be:
XNFasprintf(&busid, "pci:%04x:%02x:%02x.%d",
dev->domain, dev->bus, dev->dev, dev->func);
since it follows the style of the libc asprintf() function.
The compiler should have yelled loudly about the original patch when you
tried building it, as Michel noted in his revert message.
--
-Alan Coopersmith- alan.coopersmith@oracle.com
Oracle Solaris Platform Engineering: X Window System
next prev parent reply other threads:[~2011-02-26 17:08 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-25 21:07 [PATCH] kms: Fix warning XNFprintf is deprecated Sedat Dilek
2011-02-25 22:32 ` Alan Coopersmith
2011-02-26 17:08 ` Alan Coopersmith [this message]
2011-02-26 20:05 ` Sedat Dilek
[not found] ` <1298668038-16374-1-git-send-email-sedat.dilek-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2011-02-25 23:20 ` Alex Deucher
2011-02-26 14:32 ` Michel Dänzer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D693394.5040903@oracle.com \
--to=alan.coopersmith@oracle.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=sedat.dilek@gmail.com \
--cc=sedat.dilek@googlemail.com \
--cc=xorg-driver-ati@lists.x.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.