Skip to content

Commit 4f3e823

Browse files
committed
Smbios: improves log
1 parent 0c401a0 commit 4f3e823

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/impl/smbiosHelper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ const FFSmbiosHeaderTable* ffGetSmbiosHeaderTable() {
278278
sizeof(entryPoint),
279279
(unsigned long) entryAddress);
280280
if (pread(fd, &entryPoint, sizeof(entryPoint), entryAddress) < 0x10) {
281-
FF_DEBUG("pread failed, trying mmap");
281+
FF_DEBUG("pread failed: %s. Trying mmap", strerror(errno));
282282
// `pread /dev/mem` returns EFAULT in FreeBSD
283283
// https://stackoverflow.com/questions/69372330/how-to-read-dev-mem-using-read
284284
void* p = mmap(NULL, sizeof(entryPoint), PROT_READ, MAP_SHARED, fd, entryAddress);

0 commit comments

Comments
 (0)