DMI-Decode
view release on metacpan or search on metacpan
src/dmidecode.c view on Meta::CPAN
if(next-buf<=len)
dmi_decode(data, ver);
else
printf("\t<TRUNCATED>\n");
data=next;
i++;
}
if(i!=num)
printf("Wrong DMI structures count: %d announced, only %d decoded.\n",
num, i);
if(data-buf!=len)
printf("Wrong DMI structures length: %d bytes announced, structures occupy %d bytes.\n",
len, (unsigned int)(data-buf));
free(buf);
}
static int smbios_decode(u8 *buf, int fd, const char *pname, const char *devmem)
{
( run in 0.436 second using v1.01-cache-2.11-cpan-a9ef4e587e4 )