Skip to content

Commit

Permalink
Merge pull request #1371 from jluebbe/debug-log-version
Browse files Browse the repository at this point in the history
src/main: log version and build config at debug level
  • Loading branch information
ejoerns committed Mar 30, 2024
2 parents 368853f + afb16d5 commit fc2af48
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2525,6 +2525,15 @@ static void cmdline_handler(int argc, char **argv)
}
domains = g_getenv("G_MESSAGES_DEBUG");
g_message("Debug log domains: '%s'", domains);
g_debug(PACKAGE_VERSION
" create=" G_STRINGIFY(ENABLE_CREATE)
" emmc-boot=" G_STRINGIFY(ENABLE_EMMC_BOOT_SUPPORT)
" gpt=" G_STRINGIFY(ENABLE_GPT)
" json=" G_STRINGIFY(ENABLE_JSON)
" network=" G_STRINGIFY(ENABLE_NETWORK)
" service=" G_STRINGIFY(ENABLE_SERVICE)
" streaming=" G_STRINGIFY(ENABLE_STREAMING)
);
}

/* get first parameter without dashes */
Expand Down

0 comments on commit fc2af48

Please sign in to comment.