From 6f1066fa3c1c391fb5eaa44580aab23ac0d50ea9 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sun, 3 Dec 2017 04:55:23 +0000 Subject: [PATCH] Cast void * pointer to char * so the arg matches the %s format. Sponsored by: Netflix --- stand/powerpc/kboot/hostdisk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stand/powerpc/kboot/hostdisk.c b/stand/powerpc/kboot/hostdisk.c index 22f540674cc1..26d39596db66 100644 --- a/stand/powerpc/kboot/hostdisk.c +++ b/stand/powerpc/kboot/hostdisk.c @@ -94,7 +94,7 @@ hostdisk_open(struct open_file *f, ...) if (desc->d_unit <= 0) { printf("hostdisk_open: couldn't open %s: %d\n", - desc->d_opendata, desc->d_unit); + (char *)desc->d_opendata, desc->d_unit); return (ENOENT); }