nvdimm(4): Fix GCC 6.4.0 build

-Wformat= pedantically complains that the void* pointer is passed to a %s
format.

Sponsored by:	Dell EMC Isilon
This commit is contained in:
cem 2018-10-20 18:01:15 +00:00
parent 5711c34ef6
commit 4633e3d1a1

View File

@ -222,7 +222,7 @@ nvdimm_count_devs(ACPI_HANDLE handle __unused, void *arg)
status = AcpiGetName(handle, ACPI_FULL_PATHNAME, &name);
if (ACPI_FAILURE(status))
return_ACPI_STATUS(status);
printf("nvdimm: enumerated %s\n", name.Pointer);
printf("nvdimm: enumerated %s\n", (char *)name.Pointer);
AcpiOsFree(name.Pointer);
}