Skip to content

Commit 9282931

Browse files
committed
fabrics: Lower log level in __nvmf_add_ctrl
9df8676 ("Add logging functionality to libnvme") introduced the logging. The log level for writing to /dev/nvme-fabrics was set on NOTICE because the kernel reports also status information such EALREADY which is a soft error. 866c288 ("fabrics: update log level for write failures") increased the log level without taking this into account. Drop back to NOTICE level to avoid error message when doing $ nvme connect-all .... Failed to write to /dev/nvme-fabrics: Operation already in progress Signed-off-by: Daniel Wagner <[email protected]>
1 parent c26d71f commit 9282931

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/nvme/fabrics.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,7 @@ static int __nvmf_add_ctrl(nvme_root_t r, const char *argstr)
521521
(int)strcspn(argstr,"\n"), argstr);
522522
ret = write(fd, argstr, len);
523523
if (ret != len) {
524-
nvme_msg(r, LOG_ERR, "Failed to write to %s: %s\n",
524+
nvme_msg(r, LOG_NOTICE, "Failed to write to %s: %s\n",
525525
nvmf_dev, strerror(errno));
526526
ret = -ENVME_CONNECT_WRITE;
527527
goto out_close;

0 commit comments

Comments
 (0)