Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
nvme-cli.24266
0020-Don-t-print-error-on-failed-to-open-in-nvm...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0020-Don-t-print-error-on-failed-to-open-in-nvme-topology.patch of Package nvme-cli.24266
From: Eric Curtin <ericcurtin17@gmail.com> Date: Wed, 10 Feb 2021 18:32:01 +0000 Subject: Don't print error on failed to open in nvme-topology.c References: bsc#1198158 Git-commit: 3c570b7774ff452a43442c9779ad9819f722f93f Sometimes opens are intentionally attempted and allowed fail, such as the "nvme list" command. --- nvme-topology.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/nvme-topology.c +++ b/nvme-topology.c @@ -60,10 +60,8 @@ char *nvme_get_ctrl_attr(char *path, con goto err_free_path; fd = open(attrpath, O_RDONLY); - if (fd < 0) { - fprintf(stderr, "Failed to open %s: %s\n", attrpath, strerror(errno)); + if (fd < 0) goto err_free_value; - } ret = read(fd, value, 1024); if (ret < 0) {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor