Revision 870cef1d hw/virtio-blk.c

b/hw/virtio-blk.c
324 324
    MultiReqBuffer *mrb)
325 325
{
326 326
    if (req->elem.out_num < 1 || req->elem.in_num < 1) {
327
        fprintf(stderr, "virtio-blk missing headers\n");
327
        error_report("virtio-blk missing headers");
328 328
        exit(1);
329 329
    }
330 330

  
331 331
    if (req->elem.out_sg[0].iov_len < sizeof(*req->out) ||
332 332
        req->elem.in_sg[req->elem.in_num - 1].iov_len < sizeof(*req->in)) {
333
        fprintf(stderr, "virtio-blk header not in correct element\n");
333
        error_report("virtio-blk header not in correct element");
334 334
        exit(1);
335 335
    }
336 336

  

Also available in: Unified diff