svn commit: r339461 - head/sys/dev/nvdimm
Conrad Meyer
cem at FreeBSD.org
Sat Oct 20 18:01:16 UTC 2018
Author: cem
Date: Sat Oct 20 18:01:15 2018
New Revision: 339461
URL: https://svnweb.freebsd.org/changeset/base/339461
Log:
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
Modified:
head/sys/dev/nvdimm/nvdimm.c
Modified: head/sys/dev/nvdimm/nvdimm.c
==============================================================================
--- head/sys/dev/nvdimm/nvdimm.c Sat Oct 20 18:00:13 2018 (r339460)
+++ head/sys/dev/nvdimm/nvdimm.c Sat Oct 20 18:01:15 2018 (r339461)
@@ -222,7 +222,7 @@ nvdimm_count_devs(ACPI_HANDLE handle __unused, void *a
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);
}
More information about the svn-src-head
mailing list