From 7070ef58012341ce66c80f51d732d9102a2ff3fc Mon Sep 17 00:00:00 2001 From: Jim Klimov Date: Sun, 15 Jan 2023 14:20:42 +0100 Subject: [PATCH] drivers/main.c: report CONFIG_FLAGS always when debugging [#1789] --- drivers/main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/main.c b/drivers/main.c index a408d7c2c1..362bac6103 100644 --- a/drivers/main.c +++ b/drivers/main.c @@ -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;