[Spice-devel] [PATCH spice-gtk] coroutine: abort on OOM or impossible conditions

Christophe Fergeau cfergeau at redhat.com
Wed Nov 20 07:15:51 PST 2013


On Tue, Nov 19, 2013 at 10:23:00PM +0100, Marc-André Lureau wrote:
> @@ -76,20 +74,13 @@ int coroutine_init(struct coroutine *co)
>  			    MAP_PRIVATE | MAP_ANONYMOUS,
>  			    -1, 0);
>  	if (co->cc.stack == MAP_FAILED)
> -		g_error("Failed to allocate %u bytes for coroutine stack: %s",
> -			(unsigned)co->stack_size, strerror(errno));
> +		g_error("mmap(%zu) failed: %s", co->stack_size, g_strerror(errno));

This should be G_GSIZE_FORMAT

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/spice-devel/attachments/20131120/61b6cb95/attachment.pgp>


More information about the Spice-devel mailing list