Commit 6b919432 authored by Daniel Verkamp's avatar Daniel Verkamp
Browse files

scripts/check_format.sh: check spaces in comments



Fix up all existing spacing errors in comments and add an automated
check for patterns like /*comment*/.

Change-Id: I28f61c93612dc0f8aed66bd509da78e91ea9737e
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent 9aaccfe3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -289,10 +289,10 @@ struct spdk_bdev_io {
	 */
	bool in_submit_request;

	/** Used in virtual device (e.g., RAID), indicates its parent spdk_bdev_io **/
	/** Used in virtual device (e.g., RAID), indicates its parent spdk_bdev_io */
	struct spdk_bdev_io *parent;

	/** Used in virtual device (e.g., RAID) for storing multiple child device I/Os **/
	/** Used in virtual device (e.g., RAID) for storing multiple child device I/Os */
	TAILQ_HEAD(child_io, spdk_bdev_io) child_io;

	/** Member used for linking child I/Os together. */
+11 −11
Original line number Diff line number Diff line
@@ -3625,7 +3625,7 @@ void spdk_clear_all_transfer_task(struct spdk_iscsi_conn *conn,
	spdk_del_connection_queued_task(&conn->queued_r2t_tasks, lun);
}

/* This function is used to hanlde the r2t snack*/
/* This function is used to handle the r2t snack */
static int
spdk_iscsi_handle_r2t_snack(struct spdk_iscsi_conn *conn,
			    struct spdk_iscsi_task *task,
+21 −21
Original line number Diff line number Diff line
@@ -621,7 +621,7 @@ spdk_iscsi_construct_data_from_param(struct iscsi_param *param, char *new_val,
/**
 * To negotiate param with
 * type = ISPT_LIST
	return: the negotiated value of the key
 * return: the negotiated value of the key
 */
static char *spdk_iscsi_negotiate_param_list(int *add_param_value,
		struct iscsi_param *param,
@@ -670,7 +670,7 @@ static char *spdk_iscsi_negotiate_param_list(int *add_param_value,
/**
 * To negotiate param with
 * type = ISPT_NUMERICAL_MIN/MAX, ISPT_NUMERICAL_DECLARATIVE
	return: the negotiated value of the key
 * return: the negotiated value of the key
 */
static char *spdk_iscsi_negotiate_param_numerical(int *add_param_value,
		struct iscsi_param *param,
@@ -725,7 +725,7 @@ static char *spdk_iscsi_negotiate_param_numerical(int *add_param_value,
/**
 * To negotiate param with
 * type = ISPT_BOOLEAN_OR, ISPT_BOOLEAN_AND
	return: the negotiated value of the key
 * return: the negotiated value of the key
 */
static char *spdk_iscsi_negotiate_param_boolean(int *add_param_value,
		struct iscsi_param *param,
+7 −7
Original line number Diff line number Diff line
@@ -213,12 +213,12 @@ nvmf_direct_ctrlr_process_admin_cmd(struct spdk_nvmf_request *req)
	case SPDK_NVME_OPC_KEEP_ALIVE:
		SPDK_TRACELOG(SPDK_TRACE_NVMF, "Keep Alive\n");
		/*
		  To handle keep alive just clear or reset the
		  session based keep alive duration counter.
		  When added, a separate timer based process
		  will monitor if the time since last recorded
		  keep alive has exceeded the max duration and
		  take appropriate action.
		 * To handle keep alive just clear or reset the
		 * session based keep alive duration counter.
		 * When added, a separate timer based process
		 * will monitor if the time since last recorded
		 * keep alive has exceeded the max duration and
		 * take appropriate action.
		 */
		//session->keep_alive_timestamp = ;
		return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
+7 −7
Original line number Diff line number Diff line
@@ -345,12 +345,12 @@ nvmf_virtual_ctrlr_process_admin_cmd(struct spdk_nvmf_request *req)
	case SPDK_NVME_OPC_KEEP_ALIVE:
		SPDK_TRACELOG(SPDK_TRACE_NVMF, "Keep Alive\n");
		/*
		  To handle keep alive just clear or reset the
		  session based keep alive duration counter.
		  When added, a separate timer based process
		  will monitor if the time since last recorded
		  keep alive has exceeded the max duration and
		  take appropriate action.
		 * To handle keep alive just clear or reset the
		 * session based keep alive duration counter.
		 * When added, a separate timer based process
		 * will monitor if the time since last recorded
		 * keep alive has exceeded the max duration and
		 * take appropriate action.
		 */
		//session->keep_alive_timestamp = ;
		return SPDK_NVMF_REQUEST_EXEC_STATUS_COMPLETE;
Loading