-/* $OpenBSD: vioscsi.c,v 1.6 2018/06/19 17:12:34 reyk Exp $ */
+/* $OpenBSD: vioscsi.c,v 1.7 2018/07/10 20:43:15 reyk Exp $ */
/*
* Copyright (c) 2017 Carlos Cardenas <ccardenas@openbsd.org>
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d", __func__, acct->resp_desc->addr,
acct->resp_desc->len, acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing inq_data to 0x%llx size %d at "
+ DPRINTF("%s: writing inq_data to 0x%llx size %d at "
"local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc,
acct->req_desc, &(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d "
+ DPRINTF("%s: writing resp to 0x%llx size %d "
"at local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc,
acct->resp_desc, &(acct->resp_idx));
- dprintf("%s: writing mode_reply to 0x%llx "
+ DPRINTF("%s: writing mode_reply to 0x%llx "
"size %d at local idx %d req_idx %d "
"global_idx %d",__func__, acct->resp_desc->addr,
acct->resp_desc->len, acct->resp_idx, acct->req_idx,
acct->resp_desc = vioscsi_next_ring_desc(acct->desc,
acct->req_desc, &(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d "
+ DPRINTF("%s: writing resp to 0x%llx size %d "
"at local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc,
acct->resp_desc, &(acct->resp_idx));
- dprintf("%s: writing mode_reply to 0x%llx "
+ DPRINTF("%s: writing mode_reply to 0x%llx "
"size %d at local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing r_cap_data to 0x%llx size %d at "
+ DPRINTF("%s: writing r_cap_data to 0x%llx size %d at "
"local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing r_cap_data_16 to 0x%llx size %d "
+ DPRINTF("%s: writing r_cap_data_16 to 0x%llx size %d "
"at local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d", __func__, acct->resp_desc->addr,
acct->resp_desc->len, acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing reply_rpl to 0x%llx size %d at "
+ DPRINTF("%s: writing reply_rpl to 0x%llx size %d at "
"local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing read_buf to 0x%llx size %d at "
+ DPRINTF("%s: writing read_buf to 0x%llx size %d at "
"local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc,
acct->resp_desc, &(acct->resp_idx));
- dprintf("%s: writing read_buf to 0x%llx size "
+ DPRINTF("%s: writing read_buf to 0x%llx size "
"%d at local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing toc_data to 0x%llx size %d at "
+ DPRINTF("%s: writing toc_data to 0x%llx size %d at "
"local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->req_desc,
&(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing gesn_reply to 0x%llx size %d at "
+ DPRINTF("%s: writing gesn_reply to 0x%llx size %d at "
"local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc,
acct->req_desc, &(acct->resp_idx));
- dprintf("%s: writing resp to 0x%llx size %d at local "
+ DPRINTF("%s: writing resp to 0x%llx size %d at local "
"idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);
acct->resp_desc = vioscsi_next_ring_desc(acct->desc, acct->resp_desc,
&(acct->resp_idx));
- dprintf("%s: writing get_conf_reply to 0x%llx size %d "
+ DPRINTF("%s: writing get_conf_reply to 0x%llx size %d "
"at local idx %d req_idx %d global_idx %d",
__func__, acct->resp_desc->addr, acct->resp_desc->len,
acct->resp_idx, acct->req_idx, acct->idx);