WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [RFC PATCH 33/35] Add the Xenbus sysfs and virtual devic

To: Chris Wright <chrisw@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: [RFC PATCH 33/35] Add the Xenbus sysfs and virtual device hotplug driver.
From: Alexey Dobriyan <adobriyan@xxxxxxxxx>
Date: Tue, 9 May 2006 20:06:35 +0400
Cc: virtualization@xxxxxxxxxxxxxx, Christian Limpach <Christian.Limpach@xxxxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, Ian Pratt <ian.pratt@xxxxxxxxxxxxx>
Delivery-date: Wed, 10 May 2006 03:41:59 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:date:from:to:cc:subject:message-id:references:mime-version:content-type:content-disposition:in-reply-to:user-agent; b=A/a0WPaYqnErH7T8RKELku9rHIvgKTTlbi7A8EcLRaA5NVuFgP6gEVsdyrlEYLizzG8F3lM4D5ZP2AshBXIxtVL3ROBi162zRv5GK9kZ3+yPKxfyDX2nGU9ZnorK0exHdIjNUIkpeD8TvzwRtiEPponhNYC325Q7SuHfv6yu15Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20060509085200.826853000@xxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20060509084945.373541000@xxxxxxxxxxxx> <20060509085200.826853000@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.11
> +/* Simplified asprintf. */
> +char *kasprintf(const char *fmt, ...)
> +{
> +     va_list ap;
> +     unsigned int len;
> +     char *p, dummy[1];
> +
> +     va_start(ap, fmt);
> +     /* FIXME: vsnprintf has a bug, NULL should work */
> +     len = vsnprintf(dummy, 0, fmt, ap);
> +     va_end(ap);
> +
> +     p = kmalloc(len + 1, GFP_KERNEL);
> +     if (!p)
> +             return NULL;
> +     va_start(ap, fmt);
> +     vsprintf(p, fmt, ap);
> +     va_end(ap);
> +     return p;
> +}

This should go to lib/


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>