svn commit: r326492 - head/stand/powerpc/kboot

Warner Losh imp at FreeBSD.org
Sun Dec 3 04:55:27 UTC 2017


Author: imp
Date: Sun Dec  3 04:55:23 2017
New Revision: 326492
URL: https://svnweb.freebsd.org/changeset/base/326492

Log:
  Cast void * pointer to char * so the arg matches the %s format.
  
  Sponsored by: Netflix

Modified:
  head/stand/powerpc/kboot/hostdisk.c

Modified: head/stand/powerpc/kboot/hostdisk.c
==============================================================================
--- head/stand/powerpc/kboot/hostdisk.c	Sun Dec  3 04:55:19 2017	(r326491)
+++ head/stand/powerpc/kboot/hostdisk.c	Sun Dec  3 04:55:23 2017	(r326492)
@@ -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);
 	}
 


More information about the svn-src-head mailing list