diff --git a/backend.c b/backend.c index 41c74c7c..f290e579 100644 --- a/backend.c +++ b/backend.c @@ -363,7 +363,7 @@ SR_API int sr_init(struct sr_context **ctx) #ifdef HAVE_LIBUSB_1_0 ret = libusb_init(&context->libusb_ctx); if (LIBUSB_SUCCESS != ret) { - sr_err("libusb_init() returned %s.\n", libusb_error_name(ret)); + sr_err("libusb_init() returned %s.", libusb_error_name(ret)); ret = SR_ERR; goto done; } diff --git a/session_driver.c b/session_driver.c index 4c7082ca..5041092b 100644 --- a/session_driver.c +++ b/session_driver.c @@ -291,7 +291,7 @@ static int dev_acquisition_start(const struct sr_dev_inst *sdi, void *cb_data) if (!(vdev->archive = zip_open(vdev->sessionfile, 0, &ret))) { sr_err("Failed to open session file '%s': " - "zip error %d\n", vdev->sessionfile, ret); + "zip error %d.", vdev->sessionfile, ret); return SR_ERR; }