Extend tools/psl --print-info and --version
This commit is contained in:
parent
643e523f09
commit
ac40a6bfc8
|
@ -117,7 +117,7 @@ int main(int argc, const char *const *argv)
|
||||||
usage(0, stdout);
|
usage(0, stdout);
|
||||||
}
|
}
|
||||||
else if (!strcmp(*arg, "--version")) {
|
else if (!strcmp(*arg, "--version")) {
|
||||||
printf("psl %s\n", PACKAGE_VERSION);
|
printf("psl %s (0x%06x)\n", PACKAGE_VERSION, psl_check_version_number(0));
|
||||||
printf("libpsl %s\n", psl_get_version());
|
printf("libpsl %s\n", psl_get_version());
|
||||||
printf("\n");
|
printf("\n");
|
||||||
printf("Copyright (C) 2014-2015 Tim Ruehsen\n");
|
printf("Copyright (C) 2014-2015 Tim Ruehsen\n");
|
||||||
|
@ -214,6 +214,7 @@ int main(int argc, const char *const *argv)
|
||||||
printf("builtin compile time: %ld (%s)\n", psl_builtin_compile_time(), time2str(psl_builtin_compile_time()));
|
printf("builtin compile time: %ld (%s)\n", psl_builtin_compile_time(), time2str(psl_builtin_compile_time()));
|
||||||
printf("builtin file time: %ld (%s)\n", psl_builtin_file_time(), time2str(psl_builtin_file_time()));
|
printf("builtin file time: %ld (%s)\n", psl_builtin_file_time(), time2str(psl_builtin_file_time()));
|
||||||
printf("builtin SHA1 file hash: %s\n", psl_builtin_sha1sum());
|
printf("builtin SHA1 file hash: %s\n", psl_builtin_sha1sum());
|
||||||
|
printf("builtin outdated: %d\n", psl_builtin_outdated());
|
||||||
} else
|
} else
|
||||||
printf("No builtin PSL data available\n");
|
printf("No builtin PSL data available\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue