aboutsummaryrefslogtreecommitdiffstats
path: root/src/genhostid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/genhostid.c')
-rw-r--r--src/genhostid.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/genhostid.c b/src/genhostid.c
index f6253bec..79dcb92e 100644
--- a/src/genhostid.c
+++ b/src/genhostid.c
@@ -20,12 +20,16 @@
#include <time.h>
#include <unistd.h>
#include <sys/stat.h>
+#include <stdio.h>
int main (void)
{
struct stat st;
long int n;
+ fprintf(stderr, "warning: genhostid is now deprecated, and will be removed in the near future!\n"
+ "warning: use systemd-machine-id-setup (1) instead! More info: 'man 5 machine-id'\n");
+
/*
* NOTE: gethostid() always returns 32-bit identifier, and st_size field
* of stat structure represents total size of file, in bytes.