Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PRIu64 for uint64_t in format strings #155

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions drivers/td-req.c
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ xenio_blkif_put_response(struct td_xenblkif * const blkif,
if (err < 0) {
err = -errno;
if (req) {
RING_ERR(blkif, "req %lu: failed to notify event channel: "
RING_ERR(blkif, "req %" PRIu64 ": failed to notify event channel: "
"%s\n", req->msg.id, strerror(-err));
} else {
RING_ERR(blkif, "failed to notify event channel: %s\n",
Expand Down Expand Up @@ -386,7 +386,7 @@ guest_copy2(struct td_xenblkif * const blkif,
* xen/extras/mini-os/include/gnttab.h (header not available to
* user space)
*/
RING_ERR(blkif, "req %lu: failed to grant-copy segment %d: %d\n",
RING_ERR(blkif, "req %" PRIu64 ": failed to grant-copy segment %d: %d\n",
tapreq->msg.id, i, gcopy_seg->status);
err = -EIO;
goto out;
Expand Down Expand Up @@ -458,7 +458,7 @@ tapdisk_xenblkif_complete_request(struct td_xenblkif * const blkif,
_err = guest_copy2(blkif, tapreq);
if (unlikely(_err)) {
err = _err;
RING_ERR(blkif, "req %lu: failed to copy from/to guest: "
RING_ERR(blkif, "req %" PRIu64 ": failed to copy from/to guest: "
"%s\n", tapreq->msg.id, strerror(-err));
}
}
Expand Down Expand Up @@ -591,7 +591,7 @@ tapdisk_xenblkif_parse_request(struct td_xenblkif * const blkif,
* must be transferred.
*/
if (seg->last_sect < seg->first_sect) {
RING_ERR(blkif, "req %lu: invalid sectors %d-%d\n",
RING_ERR(blkif, "req %" PRIu64 ": invalid sectors %d-%d\n",
req->msg.id, seg->first_sect, seg->last_sect);
err = EINVAL;
goto out;
Expand Down Expand Up @@ -639,7 +639,7 @@ tapdisk_xenblkif_parse_request(struct td_xenblkif * const blkif,
if (blkif_rq_wr(&req->msg)) {
err = guest_copy2(blkif, req);
if (err) {
RING_ERR(blkif, "req %lu: failed to copy from guest: %s\n",
RING_ERR(blkif, "req %" PRIu64 ": failed to copy from guest: %s\n",
req->msg.id, strerror(-err));
goto out;
}
Expand Down Expand Up @@ -702,7 +702,7 @@ tapdisk_xenblkif_make_vbd_request(struct td_xenblkif * const blkif,
vreq->op = TD_OP_WRITE;
break;
default:
RING_ERR(blkif, "req %lu: invalid request type %d\n",
RING_ERR(blkif, "req %" PRIu64 ": invalid request type %d\n",
tapreq->msg.id, tapreq->msg.operation);
err = EOPNOTSUPP;
goto out;
Expand All @@ -714,7 +714,7 @@ tapdisk_xenblkif_make_vbd_request(struct td_xenblkif * const blkif,
if (unlikely((tapreq->msg.nr_segments == 0 &&
tapreq->msg.operation != BLKIF_OP_WRITE_BARRIER) ||
tapreq->msg.nr_segments > BLKIF_MAX_SEGMENTS_PER_REQUEST)) {
RING_ERR(blkif, "req %lu: bad number of segments in request (%d)\n",
RING_ERR(blkif, "req %" PRIu64 ": bad number of segments in request (%d)\n",
tapreq->msg.id, tapreq->msg.nr_segments);
err = EINVAL;
goto out;
Expand Down