From 690d9bd1122b40b2615e811736db6d0daab1e732 Mon Sep 17 00:00:00 2001 From: "Sanford Rockowitz (/shared/home/rock/dot_gitconfig)" Date: Tue, 5 Nov 2024 20:51:57 -0500 Subject: [PATCH] report_all_options(): report build date/time --- src/app_ddcutil/main.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app_ddcutil/main.c b/src/app_ddcutil/main.c index 6d65297d2..b44f917c9 100644 --- a/src/app_ddcutil/main.c +++ b/src/app_ddcutil/main.c @@ -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" @@ -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)