vrend: log dispatch failures

v2: vrend_print need '\n' (Yiwei)

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Ryan Neph <ryanneph@google.com>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
macos/master
Chia-I Wu 3 years ago
parent 3417d480ab
commit 6117a1bc7b
  1. 2
      src/vrend_decode.c

@ -1741,6 +1741,8 @@ static int vrend_decode_ctx_submit_cmd(struct virgl_context *ctx,
ret = decode_table[cmd](gdctx->grctx, buf, len);
if (ret) {
vrend_printf("context %d failed to dispatch %s: %d\n",
gdctx->base.ctx_id, vrend_get_comand_name(cmd), ret);
if (ret == EINVAL)
vrend_report_buffer_error(gdctx->grctx, *buf);
return ret;

Loading…
Cancel
Save