Skip to content

Commit

Permalink
redfishpower: remove excessive debug output
Browse files Browse the repository at this point in the history
Problem: In test mode, debug for the resolve-hosts option is always
output.  This can get annoying.

Only output debug indicating that resolve-hosts is set.  Don't output
if it is not set.

Fixes #207
  • Loading branch information
chu11 committed Sep 17, 2024
1 parent c5f1000 commit 59f4987
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/redfishpower/redfishpower.c
Original file line number Diff line number Diff line change
Expand Up @@ -2002,8 +2002,8 @@ int main(int argc, char *argv[])
fprintf(stderr, "command line option: auth = %s\n", userpwd);
if (message_timeout != MESSAGE_TIMEOUT_DEFAULT)
fprintf(stderr, "command line option: message timeout = %ld\n", message_timeout);
fprintf(stderr, "command line option: resolve-hosts = %s\n",
resolve_hosts ? "set" : "not set");
if (resolve_hosts)
fprintf(stderr, "command line option: resolve-hosts set\n");
}

shell(mh);
Expand Down

0 comments on commit 59f4987

Please sign in to comment.