Skip to content

Commit

Permalink
report_all_options(): report build date/time
Browse files Browse the repository at this point in the history
  • Loading branch information
rockowitz committed Nov 6, 2024
1 parent 541334b commit 690d9bd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/app_ddcutil/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
#include "public/ddcutil_types.h"

#include "base/build_info.h"
#include "base/build_timestamp.h"
#include "base/core.h"
#include "base/ddc_errno.h"
#include "base/ddc_packets.h"
Expand Down Expand Up @@ -176,6 +177,10 @@ report_all_options(Parsed_Cmd * parsed_cmd, char * config_fn, char * default_opt
DBGMSF(debug, "Executing...");

show_ddcutil_version();
if (streq(BUILD_DATE, "Not set"))
fprintf(stdout, "Build timestamp: Not set\n");
else
fprintf(stdout, "Build timestamp: %s at %s\n", BUILD_DATE, BUILD_TIME);
rpt_vstring(depth, "%.*s%-*s%s", 0, "", 28, "Configuration file:",
(config_fn) ? config_fn : "(none)");
if (config_fn)
Expand Down

0 comments on commit 690d9bd

Please sign in to comment.