From: Tomas Mlcoch Date: Tue, 12 May 2015 07:43:17 +0000 (+0200) Subject: Print debug message with version in each tool when --verbose is used X-Git-Tag: upstream/0.10.0~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=300ca69b2cf628a24929cb8d0977e0a4bec87ec4;p=services%2Fcreaterepo_c.git Print debug message with version in each tool when --verbose is used --- diff --git a/src/createrepo_c.c b/src/createrepo_c.c index e1adb4b..ab39c65 100644 --- a/src/createrepo_c.c +++ b/src/createrepo_c.c @@ -387,6 +387,11 @@ main(int argc, char **argv) // Set logging stuff cr_setup_logging(cmd_options->quiet, cmd_options->verbose); + // Emit debug message with version + g_debug("Version: %d.%d.%d\n", CR_VERSION_MAJOR, + CR_VERSION_MINOR, + CR_VERSION_PATCH); + // Set paths of input and output repos in_repo = g_strconcat(in_dir, "repodata/", NULL); diff --git a/src/mergerepo_c.c b/src/mergerepo_c.c index 1bef11a..1b2ae12 100644 --- a/src/mergerepo_c.c +++ b/src/mergerepo_c.c @@ -1574,6 +1574,10 @@ main(int argc, char **argv) return 1; } + g_debug("Version: %d.%d.%d\n", CR_VERSION_MAJOR, + CR_VERSION_MINOR, + CR_VERSION_PATCH); + g_thread_init(NULL); // Initialize threading // Prepare out_repo diff --git a/src/modifyrepo_c.c b/src/modifyrepo_c.c index 646ed90..2b880e0 100644 --- a/src/modifyrepo_c.c +++ b/src/modifyrepo_c.c @@ -274,6 +274,12 @@ main(int argc, char **argv) g_thread_init(NULL); // Initialize threading + // Emit debug message with version + + g_debug("Version: %d.%d.%d\n", CR_VERSION_MAJOR, + CR_VERSION_MINOR, + CR_VERSION_PATCH); + // Prepare list of tasks to do gchar *repodatadir = NULL; diff --git a/src/sqliterepo_c.c b/src/sqliterepo_c.c index 3de5fd6..4c2e568 100644 --- a/src/sqliterepo_c.c +++ b/src/sqliterepo_c.c @@ -1016,6 +1016,11 @@ main(int argc, char **argv) exit(EXIT_FAILURE); } + // Emit debug message with version + g_debug("Version: %d.%d.%d\n", CR_VERSION_MAJOR, + CR_VERSION_MINOR, + CR_VERSION_PATCH); + g_thread_init(NULL); // Initialize threading // Gen the databases