svn commit: r197202 - head/sys/dev/asmc

Rui Paulo rpaulo at FreeBSD.org
Mon Sep 14 21:33:00 UTC 2009


Author: rpaulo
Date: Mon Sep 14 21:33:00 2009
New Revision: 197202
URL: http://svn.freebsd.org/changeset/base/197202

Log:
  Use %zu for size_t.
  Fix printf format string (again)
  
  Pointed out by:	bde, ed

Modified:
  head/sys/dev/asmc/asmc.c

Modified: head/sys/dev/asmc/asmc.c
==============================================================================
--- head/sys/dev/asmc/asmc.c	Mon Sep 14 21:10:40 2009	(r197201)
+++ head/sys/dev/asmc/asmc.c	Mon Sep 14 21:33:00 2009	(r197202)
@@ -823,8 +823,9 @@ out:
 		type[0] = ' ';
 		type[5] = 0;
 		if (maxlen > sizeof(v)) {	
-			device_printf(dev, "WARNING: cropping maxlen "
-			    "from %u to %lu\n", maxlen, sizeof(v));
+			device_printf(dev,
+			    "WARNING: cropping maxlen from %d to %zu\n",
+			    maxlen, sizeof(v));
 			maxlen = sizeof(v);
 		}
 		for (i = 0; i < sizeof(v); i++) {


More information about the svn-src-all mailing list