summaryrefslogtreecommitdiff
path: root/util/ipmicmd.c
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2016-02-17 20:56:52 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-02-17 20:56:52 +0100
commitd3c90cdcdf56146af89056ed36bfcc7b4d4956c5 (patch)
tree501b20343861a704020ca37b8e65fd2211dcb353 /util/ipmicmd.c
parentee6c7128ed0d58cb1812049463a13bba9cfb31b7 (diff)
Imported Upstream version 2.9.8upstream/2.9.8
Diffstat (limited to 'util/ipmicmd.c')
-rw-r--r--util/ipmicmd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/util/ipmicmd.c b/util/ipmicmd.c
index d969173..efaadec 100644
--- a/util/ipmicmd.c
+++ b/util/ipmicmd.c
@@ -1058,6 +1058,14 @@ int ipmi_getdeviceid(uchar *presp, int sresp, char fdebug)
i = sresp;
if (i > sizeof(my_devid)) i = sizeof(my_devid);
memcpy(my_devid,presp,i); /* save device id for later use */
+ if (fdebug) {
+ uchar maj,min,iver;
+ int vend, prod;
+ get_devid_ver(&maj,&min,&iver);
+ get_mfgid(&vend, &prod);
+ printf("devid: firmware ver %x.%02x, IPMI v%02x, vendor=%d prod=%d\n",
+ maj,min,iver,vend,prod);
+ }
return(ACCESS_OK); /* success */
}