Version 1.2
[cfe_generate_password.git] / cfe_generate_password.c
index 2e21b45..7c5fb05 100644 (file)
@@ -60,7 +60,7 @@
 #include <stdarg.h>
 #include <string.h>
 
-static const float VERSION = 1.1f;
+static const float VERSION = 1.2f;
 static const size_t TIMESTAMP_SIZE = 6;
 static const size_t SEED_SIZE = 12;
 static const size_t PASSWORD_SIZE = 8;
@@ -131,7 +131,7 @@ generate_seed(char *mac, char *timestamp, char *seed)
     }
    result = 1;
   } else
-   pr_error_exit(0, "MAC-ADDR should be 17 characters, e.g: 00:01:02:03:04:05");
+   pr_error_exit(0, "MAC-ADDR should be %d characters, e.g: 00:01:02:03:04:05", MAC_ADDR_SIZE);
 
   return result;
 }