Fixed all SPDK_LOG() calls without newline char
Change-Id: Ib9a6b3e7584c5edd8f8c0f8cd20349d86651a5a2 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/374780 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
14451d76fe
commit
2705f6f10d
@ -247,7 +247,7 @@ spdk_fio_init_env(struct thread_data *td)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
if (spdk_conf_first_section(config) == NULL) {
|
if (spdk_conf_first_section(config) == NULL) {
|
||||||
SPDK_ERRLOG("Invalid configuration file format");
|
SPDK_ERRLOG("Invalid configuration file format\n");
|
||||||
spdk_conf_free(config);
|
spdk_conf_free(config);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -444,7 +444,7 @@ spdk_bdev_initialize(spdk_bdev_init_cb cb_fn, void *cb_arg,
|
|||||||
SPDK_ENV_SOCKET_ID_ANY);
|
SPDK_ENV_SOCKET_ID_ANY);
|
||||||
|
|
||||||
if (g_bdev_mgr.bdev_io_pool == NULL) {
|
if (g_bdev_mgr.bdev_io_pool == NULL) {
|
||||||
SPDK_ERRLOG("could not allocate spdk_bdev_io pool");
|
SPDK_ERRLOG("could not allocate spdk_bdev_io pool\n");
|
||||||
spdk_bdev_module_init_complete(-1);
|
spdk_bdev_module_init_complete(-1);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -889,7 +889,7 @@ spdk_iscsi_drop_conns(struct spdk_iscsi_conn *conn, const char *conn_match,
|
|||||||
conn->target->name, conn_match);
|
conn->target->name, conn_match);
|
||||||
}
|
}
|
||||||
|
|
||||||
SPDK_ERRLOG("exiting conn by %s (%s)",
|
SPDK_ERRLOG("exiting conn by %s (%s)\n",
|
||||||
xconn_match, xconn->initiator_addr);
|
xconn_match, xconn->initiator_addr);
|
||||||
if (xconn->sess != NULL) {
|
if (xconn->sess != NULL) {
|
||||||
SPDK_TRACELOG(SPDK_TRACE_ISCSI, "TSIH=%u\n", xconn->sess->tsih);
|
SPDK_TRACELOG(SPDK_TRACE_ISCSI, "TSIH=%u\n", xconn->sess->tsih);
|
||||||
|
@ -4087,7 +4087,7 @@ static int spdk_iscsi_op_data(struct spdk_iscsi_conn *conn,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (pdu->data_segment_len > task->desired_data_transfer_length) {
|
if (pdu->data_segment_len > task->desired_data_transfer_length) {
|
||||||
SPDK_ERRLOG("the dataout pdu data length is larger than the value sent by R2T PDU");
|
SPDK_ERRLOG("the dataout pdu data length is larger than the value sent by R2T PDU\n");
|
||||||
return SPDK_ISCSI_CONNECTION_FATAL;
|
return SPDK_ISCSI_CONNECTION_FATAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -352,7 +352,7 @@ spdk_scsi_lun_delete(const char *lun_name)
|
|||||||
pthread_mutex_lock(&g_spdk_scsi.mutex);
|
pthread_mutex_lock(&g_spdk_scsi.mutex);
|
||||||
lun = spdk_lun_db_get_lun(lun_name);
|
lun = spdk_lun_db_get_lun(lun_name);
|
||||||
if (lun == NULL) {
|
if (lun == NULL) {
|
||||||
SPDK_ERRLOG("LUN '%s' not found", lun_name);
|
SPDK_ERRLOG("LUN '%s' not found\n", lun_name);
|
||||||
pthread_mutex_unlock(&g_spdk_scsi.mutex);
|
pthread_mutex_unlock(&g_spdk_scsi.mutex);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -1524,7 +1524,7 @@ __copy_desc(struct spdk_bdev_scsi_unmap_ctx *ctx, uint8_t *data, size_t data_len
|
|||||||
desc_count = desc_data_len / 16;
|
desc_count = desc_data_len / 16;
|
||||||
|
|
||||||
if (desc_data_len > (data_len - 8)) {
|
if (desc_data_len > (data_len - 8)) {
|
||||||
SPDK_ERRLOG("Error - desc_data_len (%u) > data_len (%lu) - 8",
|
SPDK_ERRLOG("Error - desc_data_len (%u) > data_len (%lu) - 8\n",
|
||||||
desc_data_len, data_len);
|
desc_data_len, data_len);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -383,7 +383,7 @@ spdk_vhost_dev_construct(struct spdk_vhost_dev *vdev, const char *name, uint64_t
|
|||||||
|
|
||||||
if (rte_vhost_driver_start(path) != 0) {
|
if (rte_vhost_driver_start(path) != 0) {
|
||||||
spdk_strerror_r(errno, buf, sizeof(buf));
|
spdk_strerror_r(errno, buf, sizeof(buf));
|
||||||
SPDK_ERRLOG("Failed to start vhost driver for controller %s (%d): %s", name, errno,
|
SPDK_ERRLOG("Failed to start vhost driver for controller %s (%d): %s\n", name, errno,
|
||||||
buf);
|
buf);
|
||||||
rte_vhost_driver_unregister(path);
|
rte_vhost_driver_unregister(path);
|
||||||
return -EIO;
|
return -EIO;
|
||||||
@ -698,7 +698,7 @@ spdk_vhost_shutdown_cb(void)
|
|||||||
|
|
||||||
if (pthread_create(&tid, NULL, &session_shutdown, NULL) < 0) {
|
if (pthread_create(&tid, NULL, &session_shutdown, NULL) < 0) {
|
||||||
spdk_strerror_r(errno, buf, sizeof(buf));
|
spdk_strerror_r(errno, buf, sizeof(buf));
|
||||||
SPDK_ERRLOG("Failed to start session shutdown thread (%d): %s", errno, buf);
|
SPDK_ERRLOG("Failed to start session shutdown thread (%d): %s\n", errno, buf);
|
||||||
abort();
|
abort();
|
||||||
}
|
}
|
||||||
pthread_detach(tid);
|
pthread_detach(tid);
|
||||||
|
@ -534,7 +534,7 @@ new_device(struct spdk_vhost_dev *vdev)
|
|||||||
|
|
||||||
rc = alloc_task_pool(bvdev);
|
rc = alloc_task_pool(bvdev);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
SPDK_ERRLOG("%s: failed to alloc task pool.", bvdev->vdev.name);
|
SPDK_ERRLOG("%s: failed to alloc task pool.\n", bvdev->vdev.name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1110,14 +1110,14 @@ new_device(struct spdk_vhost_dev *vdev)
|
|||||||
|
|
||||||
rc = alloc_task_pool(svdev);
|
rc = alloc_task_pool(svdev);
|
||||||
if (rc != 0) {
|
if (rc != 0) {
|
||||||
SPDK_ERRLOG("%s: failed to alloc task pool.", vdev->name);
|
SPDK_ERRLOG("%s: failed to alloc task pool.\n", vdev->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
svdev->vhost_events = spdk_ring_create(SPDK_RING_TYPE_MP_SC, 16,
|
svdev->vhost_events = spdk_ring_create(SPDK_RING_TYPE_MP_SC, 16,
|
||||||
spdk_env_get_socket_id(vdev->lcore));
|
spdk_env_get_socket_id(vdev->lcore));
|
||||||
if (svdev->vhost_events == NULL) {
|
if (svdev->vhost_events == NULL) {
|
||||||
SPDK_ERRLOG("%s: failed to alloc event pool.", vdev->name);
|
SPDK_ERRLOG("%s: failed to alloc event pool.\n", vdev->name);
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user