From 53df1594c2ad8bd5e3f185155ee2f8d07590ce16 Mon Sep 17 00:00:00 2001 From: Keith Busch Date: Thu, 27 Oct 2016 12:18:05 -0400 Subject: [PATCH] Fix coding alignment Line wrapping argconfig options makes it harder to read. Signed-off-by: Keith Busch --- fabrics.c | 54 +++++++++++++++++------------------------------------- 1 file changed, 17 insertions(+), 37 deletions(-) diff --git a/fabrics.c b/fabrics.c index affd539..2b3caa1 100644 --- a/fabrics.c +++ b/fabrics.c @@ -740,19 +740,12 @@ int discover(const char *desc, int argc, char **argv, bool connect) char argstr[BUF_SIZE]; int ret; const struct argconfig_commandline_options command_line_options[] = { - {"transport", 't', "LIST", CFG_STRING, &cfg.transport, - required_argument, "transport type" }, - {"traddr", 'a', "LIST", CFG_STRING, &cfg.traddr, - required_argument, "transport address" }, - {"trsvcid", 's', "LIST", CFG_STRING, &cfg.trsvcid, - required_argument, "transport service id (e.g. IP port)" }, - {"host_traddr", 's', "LIST", CFG_STRING, &cfg.host_traddr, - required_argument, "host traddr (e.g. FC WWN's)" }, - {"hostnqn", 'q', "LIST", CFG_STRING, &cfg.hostnqn, - required_argument, - "user-defined hostnqn (if default not used)" }, - {"raw", 'r', "LIST", CFG_STRING, &cfg.raw, required_argument, - "raw output file" }, + {"transport", 't', "LIST", CFG_STRING, &cfg.transport, required_argument, "transport type" }, + {"traddr", 'a', "LIST", CFG_STRING, &cfg.traddr, required_argument, "transport address" }, + {"trsvcid", 's', "LIST", CFG_STRING, &cfg.trsvcid, required_argument, "transport service id (e.g. IP port)" }, + {"host-traddr", 'w', "LIST", CFG_STRING, &cfg.host_traddr, required_argument, "host traddr (e.g. FC WWN's)" }, + {"hostnqn", 'q', "LIST", CFG_STRING, &cfg.hostnqn, required_argument, "user-defined hostnqn (if default not used)" }, + {"raw", 'r', "LIST", CFG_STRING, &cfg.raw, required_argument, "raw output file" }, {NULL}, }; @@ -778,26 +771,15 @@ int connect(const char *desc, int argc, char **argv) char argstr[BUF_SIZE]; int instance, ret; const struct argconfig_commandline_options command_line_options[] = { - {"transport", 't', "LIST", CFG_STRING, &cfg.transport, - required_argument, - "transport type" }, - {"nqn", 'n', "LIST", CFG_STRING, &cfg.nqn, required_argument, - "nqn name" }, - {"traddr", 'a', "LIST", CFG_STRING, &cfg.traddr, - required_argument, "transport address" }, - {"trsvcid", 's', "LIST", CFG_STRING, &cfg.trsvcid, - required_argument, "transport service id (e.g. IP port)" }, - {"host-traddr", 'w', "LIST", CFG_STRING, &cfg.host_traddr, - required_argument, "host traddr (e.g. FC WWN's)" }, - {"hostnqn", 'q', "LIST", CFG_STRING, &cfg.hostnqn, - required_argument, "user-defined hostnqn" }, - {"nr-io-queues", 'i', "LIST", CFG_STRING, &cfg.nr_io_queues, - required_argument, - "number of io queues to use (default is core count)" }, - {"keep-alive-tmo", 'k', "LIST", CFG_STRING, &cfg.keep_alive_tmo, required_argument, - "keep alive timeout period in seconds" }, - {"reconnect-delay", 'c', "LIST", CFG_STRING, &cfg.reconnect_delay, required_argument, - "reconnect timeout period in seconds" }, + {"transport", 't', "LIST", CFG_STRING, &cfg.transport, required_argument, "transport type" }, + {"nqn", 'n', "LIST", CFG_STRING, &cfg.nqn, required_argument, "nqn name" }, + {"traddr", 'a', "LIST", CFG_STRING, &cfg.traddr, required_argument, "transport address" }, + {"trsvcid", 's', "LIST", CFG_STRING, &cfg.trsvcid, required_argument, "transport service id (e.g. IP port)" }, + {"host-traddr", 'w', "LIST", CFG_STRING, &cfg.host_traddr, required_argument, "host traddr (e.g. FC WWN's)" }, + {"hostnqn", 'q', "LIST", CFG_STRING, &cfg.hostnqn, required_argument, "user-defined hostnqn" }, + {"nr-io-queues", 'i', "LIST", CFG_STRING, &cfg.nr_io_queues, required_argument, "number of io queues to use (default is core count)" }, + {"keep-alive-tmo", 'k', "LIST", CFG_STRING, &cfg.keep_alive_tmo, required_argument, "keep alive timeout period in seconds" }, + {"reconnect-delay", 'c', "LIST", CFG_STRING, &cfg.reconnect_delay, required_argument, "reconnect timeout period in seconds" }, {NULL}, }; @@ -918,10 +900,8 @@ int disconnect(const char *desc, int argc, char **argv) int ret = 0; const struct argconfig_commandline_options command_line_options[] = { - {"nqn", 'n', "LIST", CFG_STRING, &cfg.nqn, - required_argument, nqn}, - {"device", 'd', "LIST", CFG_STRING, &cfg.device, - required_argument, device}, + {"nqn", 'n', "LIST", CFG_STRING, &cfg.nqn, required_argument, nqn}, + {"device", 'd', "LIST", CFG_STRING, &cfg.device, required_argument, device}, {NULL}, }; -- 2.49.0