acpi: Fixed RSDT printf
This commit is contained in:
parent
df048d9f11
commit
90e099aedf
1 changed files with 3 additions and 5 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue