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:53 +0100
committerJörg Frings-Fürst <debian@jff-webhosting.net>2016-02-17 20:56:53 +0100
commit2adeca46f677bacad1914a3a1eedabaf710c71ad (patch)
tree71028a415516aa9c702e86a6959cb9d2101229a6 /util/ipmicmd.c
parent842dcead48ee80a10afa6e03667e9bf74cb8f2ab (diff)
parentd3c90cdcdf56146af89056ed36bfcc7b4d4956c5 (diff)
Merge tag 'upstream/2.9.8'
Upstream version 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 */
}