From f0fe895cb182e7285d124372466940e724bf5304 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sun, 16 May 2004 16:04:58 +0000 Subject: [PATCH] print out libsensors version too git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2538 7894878c-1315-0410-8ee3-d5d059ff63e0 --- prog/sensors/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/prog/sensors/main.c b/prog/sensors/main.c index c4737f78..86d3229c 100644 --- a/prog/sensors/main.c +++ b/prog/sensors/main.c @@ -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.