[MLX4] a casting fix (to please the compiler)
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Oct 2008 13:52:29 +0000 (13:52 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 23 Oct 2008 13:52:29 +0000 (13:52 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@1691 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

hw/mlx4/kernel/bus/core/l2w_debug.c

index 7d33eab..dcb1a36 100644 (file)
@@ -138,7 +138,7 @@ mlx4_err(
        va_end(list);
 
        // print to Event Log
-       __ansi_to_wchar( wbuf, buf, strlen(buf) );
+       __ansi_to_wchar( wbuf, buf, (int)strlen((void*)buf) );
        WriteEventLogEntryStr( mdev->pdev->p_self_do, (ULONG)EVENT_MLX4_ANY_ERROR, 0, 0, wbuf, 0, 0 ); 
 }