aboutsummaryrefslogtreecommitdiff
path: root/lib/irq.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-04-07 09:54:00 +0100
committerGitHub <noreply@github.com>2021-04-07 09:54:00 +0100
commit293e1a92ffdbd794c3e23f528589e532b9b1e73a (patch)
treeb84f7dfabdf0c1d19119e9f537ffe3557eaed459 /lib/irq.c
parented6deba2b8a496e5c3047d3d46208109ac762e4b (diff)
downloadlibvfio-user-293e1a92ffdbd794c3e23f528589e532b9b1e73a.zip
libvfio-user-293e1a92ffdbd794c3e23f528589e532b9b1e73a.tar.gz
libvfio-user-293e1a92ffdbd794c3e23f528589e532b9b1e73a.tar.bz2
clean up newlines in logs (#423)
vfu_log() and err() should not take newlines. Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/irq.c')
-rw-r--r--lib/irq.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/irq.c b/lib/irq.c
index 9e0a428..bc48d4f 100644
--- a/lib/irq.c
+++ b/lib/irq.c
@@ -64,7 +64,7 @@ dev_get_irqinfo(vfu_ctx_t *vfu_ctx, struct vfio_irq_info *irq_info_in,
// Ensure provided argsz is sufficiently big and index is within bounds.
if ((irq_info_in->argsz < sizeof(struct vfio_irq_info)) ||
(irq_info_in->index >= VFU_DEV_NUM_IRQS)) {
- vfu_log(vfu_ctx, LOG_DEBUG, "bad irq_info (size=%d index=%d)\n",
+ vfu_log(vfu_ctx, LOG_DEBUG, "bad irq_info (size=%d index=%d)",
irq_info_in->argsz, irq_info_in->index);
return -EINVAL;
}
@@ -380,7 +380,7 @@ validate_irq_subindex(vfu_ctx_t *vfu_ctx, uint32_t subindex)
}
if ((subindex >= vfu_ctx->irqs->max_ivs)) {
- vfu_log(vfu_ctx, LOG_ERR, "bad IRQ %d, max=%d\n", subindex,
+ vfu_log(vfu_ctx, LOG_ERR, "bad IRQ %d, max=%d", subindex,
vfu_ctx->irqs->max_ivs);
return false;
}
@@ -398,7 +398,7 @@ vfu_irq_trigger(vfu_ctx_t *vfu_ctx, uint32_t subindex)
}
if (vfu_ctx->irqs->efds[subindex] == -1) {
- vfu_log(vfu_ctx, LOG_ERR, "no fd for interrupt %d\n", subindex);
+ vfu_log(vfu_ctx, LOG_ERR, "no fd for interrupt %d", subindex);
return ERROR_INT(ENOENT);
}