Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:15-SP6
nvme-cli.26591
0013-nvme-Do-not-print-error-message-in-collect...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0013-nvme-Do-not-print-error-message-in-collect_effects_l.patch of Package nvme-cli.26591
From: Daniel Wagner <dwagner@suse.de> Date: Mon, 1 Aug 2022 14:22:17 +0200 Subject: nvme: Do not print error message in collect_effects_log helper Git-commit: 666ff8c15da3a3e00b4386944a2b6792ce745c0e References: git-fixes We print error and status on the top level, so no need to print it a helper. Signed-off-by: Daniel Wagner <dwagner@suse.de> --- nvme.c | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) --- a/nvme.c +++ b/nvme.c @@ -596,17 +596,12 @@ static int collect_effects_log(int fd, e node->csi = csi; err = nvme_get_log_cmd_effects(fd, csi, &node->effects); - if (!err) { - list_add(list, &node->node); + if (err) { + free(node); return err; } - else if (err > 0) - nvme_show_status(err); - else - fprintf(stderr, "effects log page: %s\n", nvme_strerror(errno)); - - free(node); - return err; + list_add(list, &node->node); + return 0; } static int get_effects_log(int argc, char **argv, struct command *cmd, struct plugin *plugin)
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