changeset 6626:ab06cdf4885a onnv_90

6691488 Solaris should warn about mis-aligned mutexes (fix lint)
author ck142721
date Mon, 12 May 2008 20:27:35 -0700
parents cce5b30c731d
children c188610508f1
files usr/src/uts/common/os/mutex.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/usr/src/uts/common/os/mutex.c	Mon May 12 20:26:46 2008 -0700
+++ b/usr/src/uts/common/os/mutex.c	Mon May 12 20:27:35 2008 -0700
@@ -598,7 +598,7 @@
 			    "aligned; caller %s+%lx in module %s. "
 			    "This is unsupported and may cause a panic. "
 			    "Please report this to the kernel module supplier.",
-			    lp, MUTEX_ALIGN,
+			    (void *)lp, MUTEX_ALIGN,
 			    funcname ? funcname : "unknown", offset,
 			    mod_containing_pc(caller()));
 			misalign_cnt++;