Skip to content

Commit 5f03495

Browse files
martin-gpyigaw
authored andcommitted
fabrics: fix fabrics_connect() error message
Seeing below error message displayed during nvme connect error scenarios: failed to connected: Unknown error -1013 Fix this by ensuring the appropriate ret value is passed to nvme_strerror(). And while at it, correct the message text grammar as well. Signed-off-by: Martin George <[email protected]>
1 parent 5fdc131 commit 5f03495

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

fabrics.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -708,8 +708,8 @@ int fabrics_connect(const char *desc, int argc, char **argv)
708708

709709
ret = nvmf_connect(ctx, fctx);
710710
if (ret) {
711-
fprintf(stderr, "failed to connected: %s\n",
712-
nvme_strerror(ret));
711+
fprintf(stderr, "failed to connect: %s\n",
712+
nvme_strerror(-ret));
713713
return ret;
714714
}
715715

0 commit comments

Comments
 (0)