diff options
author | John Levon <john.levon@nutanix.com> | 2021-04-07 09:54:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-07 09:54:00 +0100 |
commit | 293e1a92ffdbd794c3e23f528589e532b9b1e73a (patch) | |
tree | b84f7dfabdf0c1d19119e9f537ffe3557eaed459 /samples/client.c | |
parent | ed6deba2b8a496e5c3047d3d46208109ac762e4b (diff) | |
download | libvfio-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 'samples/client.c')
-rw-r--r-- | samples/client.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/samples/client.c b/samples/client.c index 8a03f84..ea0c73e 100644 --- a/samples/client.c +++ b/samples/client.c @@ -203,7 +203,7 @@ send_device_reset(int sock) int ret = tran_sock_msg(sock, 1, VFIO_USER_DEVICE_RESET, NULL, 0, NULL, NULL, 0); if (ret < 0) { - errx(EXIT_FAILURE, "failed to reset device: %s\n", strerror(-ret)); + errx(EXIT_FAILURE, "failed to reset device: %s", strerror(-ret)); } } @@ -904,7 +904,7 @@ migrate_from(int sock, int migr_reg_index, size_t *nr_iters, _nr_iters += do_migrate(sock, migr_reg_index, 1, (*migr_iters) + _nr_iters); if (_nr_iters != 2) { errx(EXIT_FAILURE, - "expected 2 iterations instead of %ld while in stop-and-copy state\n", + "expected 2 iterations instead of %ld while in stop-and-copy state", _nr_iters); } @@ -1155,7 +1155,7 @@ int main(int argc, char *argv[]) ret = access_region(sock, VFU_PCI_DEV_CFG_REGION_IDX, false, 0, &config_space, sizeof(config_space)); if (ret < 0) { - errx(EXIT_FAILURE, "failed to read PCI configuration space: %s\n", + errx(EXIT_FAILURE, "failed to read PCI configuration space: %s", strerror(-ret)); } |