Hi,
While compiling the GENERIC.MP kernel on amd64 with ACPI_MEMDEBUG
defined, I get the following error:
dsdt.c:411: warning: format '%x' expects type 'unsigned int',
but argument 4 has type 'long int'
Adding the 'l' modifier fixes the error.
Index: dsdt.c
===================================================================
RCS file: /cvs/src/sys/dev/acpi/dsdt.c,v
retrieving revision 1.232
diff -u -p -r1.232 dsdt.c
--- dsdt.c 8 Apr 2017 01:20:10 -0000 1.232
+++ dsdt.c 13 Apr 2017 19:16:55 -0000
@@ -406,7 +406,7 @@ acpi_walkmem(int sig, const char *lbl)
{
struct acpi_memblock *sptr;
- printf("--- walkmem:%s %x --- %x bytes alloced\n", lbl, sig,
acpi_nalloc);
+ printf("--- walkmem:%s %x --- %lx bytes alloced\n", lbl, sig,
acpi_nalloc);
LIST_FOREACH(sptr, &acpi_memhead, link) {
if (sptr->sig < sig)
break;