acpi: Fixed RSDT printf

This commit is contained in:
Michael Shaw 2023-03-11 20:41:08 -05:00
commit 90e099aedf

View file

@ -7,8 +7,7 @@
#include <stdio.h>
#include <string.h>
struct limine_rsdp_request rsdp_req = { .id = LIMINE_RSDP_REQUEST,
.revision = 0 };
struct limine_rsdp_request rsdp_req = { .id = LIMINE_RSDP_REQUEST, .revision = 0 };
static struct rsdp *rsdp = NULL;
struct madt *__madt = NULL;
@ -27,10 +26,9 @@ void rsdt_print(struct rsdt *rsdt)
__madt = (struct madt *)h;
}
char buf[9];
char buf[8] = { 0 };
memcpy(buf, h->signature, 4);
printf(LOG_INFO "RSDT entry: %s %d %x \n", buf, h->revision,
h->checksum);
printf(LOG_INFO "RSDT entry: %s %d %x \n", buf, h->revision, h->checksum);
}
}