From: "Blue Swirl" Subject: Re: [PATCH 3/7] xen: add console backend driver. Date: Mon, 4 Aug 2008 19:52:44 +0300 Message-ID: References: <1217865045-10722-1-git-send-email-kraxel@redhat.com> <1217865045-10722-4-git-send-email-kraxel@redhat.com> Reply-To: qemu-devel@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1217865045-10722-4-git-send-email-kraxel@redhat.com> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org On 8/4/08, Gerd Hoffmann wrote: > + buffer->data = realloc(buffer->data, buffer->capacity); On Qemu, instead of malloc, qemu_malloc should be used to allocate memory. Though there isn't qemu_realloc. > + if (!type || 0 != strcmp(type, "ioemu")) { Shouldn't this be "qemu"?