diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2018-07-11 07:36:21 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2018-07-11 07:36:21 +0200 |
commit | 341aee5e3e3625173e4b684cc4166e60f6eb147f (patch) | |
tree | 133bb01bc02539bb98f98bfa6807dc084b995bec /util/isensor.c | |
parent | 631fa5250443f5441549bf3184830bc34b0c042e (diff) | |
parent | 788a8d509d66a15ecb1810599885792a1acaaeb9 (diff) |
Merge branch 'release/debian/3.1.1-1'debian/3.1.1-1
Diffstat (limited to 'util/isensor.c')
-rw-r--r-- | util/isensor.c | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/util/isensor.c b/util/isensor.c index 286b19d..f140cdc 100644 --- a/util/isensor.c +++ b/util/isensor.c @@ -254,8 +254,13 @@ char *decode_entity_id(int id) { /************************ * Global Data ************************/ -static char *progname = "isensor"; -static char *progver = "3.08"; +#ifdef METACOMMAND +extern char * progver; /*from ipmiutil.c*/ +static char * progname = "ipmiutil sensor"; +#else +static char * progver = "3.08"; +static char * progname = "isensor"; +#endif #ifdef WIN32 static char savefile[] = "%ipmiutildir%\\thresholds.cmd"; #else @@ -3247,7 +3252,7 @@ int i_sensor(int argc, char **argv) char *p; char *s1; - printf("%s: version %s\n",progname,progver); + printf("%s version %s\n",progname,progver); while ( (c = getopt( argc, argv,"a:bcd:ef:g:h:i:j:k:l:m:n:opqrstu:vwxT:V:J:L:EYF:P:N:R:U:Z:?")) != EOF ) switch(c) { |