|
From: | Paul Brook |
Subject: | Re: [Qemu-devel] [PATCH 1/5] char: Let the caller know how many bytes were written in case of incomplete writes |
Date: | Mon, 5 Apr 2010 17:33:38 +0100 |
User-agent: | KMail/1.12.4 (Linux/2.6.33-2-amd64; KDE/4.3.4; x86_64; ; ) |
> There might be cases where a few bytes would have been sent out to char > devices and some not. Currently the return values from qemu_chr_write() > to char devs are only -1, indicating an error, or the complete length > of the string passed. > > Make 'len' a pointer instead, and indicate how much of the string was > written. The return value will either be the same as 'len' or a negative > number indicating an error condition. This seems wrong. We should not be getting recoverable errors. Paul
[Prev in Thread] | Current Thread | [Next in Thread] |