From cf678db1fd74ec6d71f5db27b016ed27dd7bc96d Mon Sep 17 00:00:00 2001 From: Frank Rolsted Jensen Date: Tue, 19 Jun 2018 16:05:45 +0200 Subject: [PATCH] version information added to log file --- ttynvt.c | 5 +++++ ver.h | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 ver.h 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