> 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