Browse Source

* Postfix version with (d) if running as a debug binary

Bryan Drewery 16 years ago
parent
commit
7583be5b84
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/main.c

+ 7 - 1
src/main.c

@@ -770,7 +770,13 @@ int main(int argc, char **argv)
 
   /* Version info! */
   simple_snprintf(ver, sizeof(ver), STR("[%s] Wraith %s"), settings.packname, egg_version);
-  simple_snprintf(version, sizeof(version), STR("%s (%lu)"), ver, buildts);
+  simple_snprintf(version, sizeof(version), STR("%s%s (%lu)"), ver,
+#ifdef DEBUG
+      "(d)",
+#else
+      "",
+#endif
+      buildts);
 
   memcpy(&nowtm, gmtime(&now), sizeof(struct tm));
   lastmin = nowtm.tm_min;