From 98a2ec3e5a8ce24b57912cf2277a7ad4a93db5e4 Mon Sep 17 00:00:00 2001 From: Paul Luse Date: Tue, 17 Oct 2017 19:21:27 -0700 Subject: [PATCH] blobcli: minor fixes - fixed issue with token parsing where only a space was desired and some other junk ended up in there that would cause issues with parsing filenames because of the . - made s few fatal error exits consistent Change-Id: Ib7fa07416881df42db88db7d94542963e492ca9b Signed-off-by: Paul Luse Reviewed-on: https://review.gerrithub.io/382911 Reviewed-by: Jim Harris Tested-by: SPDK Automated Test System --- examples/blob/cli/blobcli.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/blob/cli/blobcli.c b/examples/blob/cli/blobcli.c index ee0b2d277..78f7aece7 100644 --- a/examples/blob/cli/blobcli.c +++ b/examples/blob/cli/blobcli.c @@ -851,7 +851,7 @@ load_bs_cb(void *arg1, struct spdk_blob_store *bs, int bserrno) default: /* should never get here */ - spdk_app_stop(-1); + exit(-1); break; } } @@ -1291,7 +1291,7 @@ cli_shell(void *arg1, void *arg2) cli_context->argv[cli_context->argc] = strdup(tok); tok_len = strlen(tok); cli_context->argc++; - tok = strtok(NULL, " ,.-"); + tok = strtok(NULL, " "); } /* replace newline on last arg with null */ @@ -1375,7 +1375,7 @@ cli_start(void *arg1, void *arg2) break; default: /* should never get here */ - spdk_app_stop(-1); + exit(-1); break; } } @@ -1432,7 +1432,7 @@ main(int argc, char **argv) printf("To create a config file named 'blobcli.conf' for your NVMe device:\n"); printf(" /scripts/gen_nvme.sh > blobcli.conf\n"); printf("and then re-run the cli tool.\n"); - exit(1); + exit(-1); } /*