diff --git a/ttynvt.c b/ttynvt.c index be7c994..0735fa8 100644 --- a/ttynvt.c +++ b/ttynvt.c @@ -29,6 +29,7 @@ #include #include "telnet.h" +#include "ver.h" #define RX_BUF_SIZE 1024 #define MAX_HOST_NAME 64 @@ -841,6 +842,10 @@ int main(int argc, char *argv[]) perror("Failed to open log file"); return 1; } + ttynvt_log("ttynvt ver:%u:%02u started, dev:%s\n", + TTYNVT_VER_MAJOR, + TTYNVT_VER_MINOR, + param.dev_name); } else lfd = -1; diff --git a/ver.h b/ver.h new file mode 100644 index 0000000..3a1d5e2 --- /dev/null +++ b/ver.h @@ -0,0 +1,7 @@ +#ifndef TTYNVT_VER_H +#define TTYNVT_VER_H + +#define TTYNVT_VER_MAJOR 0 +#define TTYNVT_VER_MINOR 9 + +#endif