From 4633e3d1a1124a00a4c1e8c357ba3a7ebb8628c1 Mon Sep 17 00:00:00 2001 From: cem Date: Sat, 20 Oct 2018 18:01:15 +0000 Subject: [PATCH] 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 --- sys/dev/nvdimm/nvdimm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/nvdimm/nvdimm.c b/sys/dev/nvdimm/nvdimm.c index 14fe7f9f39c0..6a3fab4190c0 100644 --- a/sys/dev/nvdimm/nvdimm.c +++ b/sys/dev/nvdimm/nvdimm.c @@ -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); }