version information added to log file

This commit is contained in:
Frank Rolsted Jensen
2018-06-19 16:05:45 +02:00
parent 6556a2ec50
commit cf678db1fd
2 changed files with 12 additions and 0 deletions
+5
View File
@@ -29,6 +29,7 @@
#include <time.h>
#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;
+7
View File
@@ -0,0 +1,7 @@
#ifndef TTYNVT_VER_H
#define TTYNVT_VER_H
#define TTYNVT_VER_MAJOR 0
#define TTYNVT_VER_MINOR 9
#endif