diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-02-17 20:56:53 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2016-02-17 20:56:53 +0100 |
commit | 2adeca46f677bacad1914a3a1eedabaf710c71ad (patch) | |
tree | 71028a415516aa9c702e86a6959cb9d2101229a6 /util/ipmicmd.c | |
parent | 842dcead48ee80a10afa6e03667e9bf74cb8f2ab (diff) | |
parent | d3c90cdcdf56146af89056ed36bfcc7b4d4956c5 (diff) |
Merge tag 'upstream/2.9.8'
Upstream version 2.9.8
Diffstat (limited to 'util/ipmicmd.c')
-rw-r--r-- | util/ipmicmd.c | 8 |
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 */ } |