diff options
author | Drew DeVault <sir@cmpwn.com> | 2015-09-02 09:42:27 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2015-09-02 09:42:27 -0400 |
commit | eb003689a30c472d355beeb0d0ef06ba977f4b52 (patch) | |
tree | b6e9bbf4098d02e981471381689ed4772d6f1ce2 /sway | |
parent | Remove stropts.h from ipc.c (diff) | |
download | sway-eb003689a30c472d355beeb0d0ef06ba977f4b52.tar.gz sway-eb003689a30c472d355beeb0d0ef06ba977f4b52.tar.zst sway-eb003689a30c472d355beeb0d0ef06ba977f4b52.zip |
Log sway version on startup
Diffstat (limited to 'sway')
-rw-r--r-- | sway/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sway/main.c b/sway/main.c index 01c19074..9c7f21b3 100644 --- a/sway/main.c +++ b/sway/main.c | |||
@@ -102,6 +102,10 @@ int main(int argc, char **argv) { | |||
102 | init_log(L_ERROR); | 102 | init_log(L_ERROR); |
103 | } | 103 | } |
104 | 104 | ||
105 | #if defined SWAY_GIT_VERSION && defined SWAY_GIT_BRANCH && defined SWAY_VERSION_DATE | ||
106 | sway_log(L_INFO, "Starting sway version %s (%s, branch \"%s\")\n", SWAY_GIT_VERSION, SWAY_VERSION_DATE, SWAY_GIT_BRANCH); | ||
107 | #endif | ||
108 | |||
105 | if (validate) { | 109 | if (validate) { |
106 | bool valid = load_config(config_path); | 110 | bool valid = load_config(config_path); |
107 | return valid ? 0 : 1; | 111 | return valid ? 0 : 1; |