Skip to content

Commit

Permalink
drivers/main.c: report CONFIG_FLAGS always when debugging [networkups…
Browse files Browse the repository at this point in the history
  • Loading branch information
jimklimov committed Jan 15, 2023
1 parent a1d4ffd commit 7070ef5
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -861,6 +861,14 @@ int main(int argc, char **argv)
}
} /* else: default remains `background_flag==-1` where nonzero is true */

/* Since debug mode dumps from drivers are often posted to mailing list
* or issue tracker, as well as viewed locally, it can help to know the
* build options involved when troubleshooting (especially when needed
* to walk through building a PR branch with candidate fix for an issue).
*/
upsdebugx(1, "Network UPS Tools version %s configured with flags: %s",
UPS_VERSION, CONFIG_FLAGS);

argc -= optind;
argv += optind;

Expand Down

0 comments on commit 7070ef5

Please sign in to comment.