2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-30 22:05:11 +00:00

print out libsensors version too

git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2538 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Mark D. Studebaker
2004-05-16 16:04:58 +00:00
parent 4046d36cd8
commit f0fe895cb1

View File

@@ -40,6 +40,7 @@ FILE *config_file;
static const char *config_file_path[] =
{ "/etc", "/usr/local/etc", "/usr/lib/sensors", "/usr/local/lib/sensors",
"/usr/lib", "/usr/local/lib", ".", 0 };
extern const char *libsensors_version;
extern int main(int argc, char *arv[]);
static void print_short_help(void);
@@ -92,7 +93,7 @@ void print_long_help(void)
void print_version(void)
{
printf("%s version %s\n", PROGRAM, VERSION);
printf("%s version %s with libsensors version %s\n", PROGRAM, VERSION, libsensors_version);
}
/* This examines global var config_file, and leaves the name there too.