[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] API: prefer to use NULLSTR macro



On Wed, Sep 21, 2011 at 05:38:26PM +0800, Osier Yang wrote:
> ---
>  src/libvirt.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/src/libvirt.c b/src/libvirt.c
> index 05c0a87..8f94b11 100644
> --- a/src/libvirt.c
> +++ b/src/libvirt.c
> @@ -10300,7 +10300,7 @@ virConnectFindStoragePoolSources(virConnectPtr conn,
>                                   unsigned int flags)
>  {
>      VIR_DEBUG("conn=%p, type=%s, src=%s, flags=%x",
> -              conn, type ? type : "", srcSpec ? srcSpec : "", flags);
> +              conn, NULLSTR(type), NULLSTR(srcSpec), flags);
>  
>      virResetLastError();
>  

  ACK,

Daniel

-- 
Daniel Veillard      | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
daniel veillard com  | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library  http://libvirt.org/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]