From 91c7485b698665167b5156bfea13795cc17a52a3 Mon Sep 17 00:00:00 2001 From: leonidk Date: Sun, 18 May 2008 14:17:38 +0000 Subject: [PATCH] [MLX4] Reverted the previous patch. Has been done to the wrong project. git-svn-id: svn://openib.tc.cornell.edu/gen1@1181 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- branches/WOF1-1/hw/mlx4/kernel/bus/core/l2w_debug.c | 5 ++--- branches/WOF1-1/hw/mlx4/kernel/inc/mlx4_debug.h | 3 +-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/branches/WOF1-1/hw/mlx4/kernel/bus/core/l2w_debug.c b/branches/WOF1-1/hw/mlx4/kernel/bus/core/l2w_debug.c index 60843030..551261df 100644 --- a/branches/WOF1-1/hw/mlx4/kernel/bus/core/l2w_debug.c +++ b/branches/WOF1-1/hw/mlx4/kernel/bus/core/l2w_debug.c @@ -127,7 +127,7 @@ mlx4_err( va_end(list); // print to Event Log - if (!RtlStringCchPrintfW(wbuf, sizeof(wbuf)/sizeof(wbuf[0]), L"%S", buf)) + if (!RtlStringCchPrintfW(wbuf, sizeof(wbuf), L"%S", buf)) WriteEventLogEntryStr( mdev->pdev->p_self_do, (ULONG)EVENT_MLX4_ANY_ERROR, 0, 0, wbuf, 0, 0 ); } @@ -174,7 +174,7 @@ dev_err( va_end(list); // print to Event Log - RtlStringCchPrintfW(wbuf, sizeof(wbuf)/sizeof(wbuf[0]), L"%S", buf); + RtlStringCchPrintfW(wbuf, sizeof(wbuf), L"%S", buf); WriteEventLogEntryStr( (*mdev)->pdev->p_self_do, (ULONG)EVENT_MLX4_ANY_ERROR, 0, 0, wbuf, 0, 0 ); } @@ -203,4 +203,3 @@ dev_info( } - diff --git a/branches/WOF1-1/hw/mlx4/kernel/inc/mlx4_debug.h b/branches/WOF1-1/hw/mlx4/kernel/inc/mlx4_debug.h index 7141f354..011913bb 100644 --- a/branches/WOF1-1/hw/mlx4/kernel/inc/mlx4_debug.h +++ b/branches/WOF1-1/hw/mlx4/kernel/inc/mlx4_debug.h @@ -51,7 +51,7 @@ static void _build_str( const char * format, ... ) status = RtlStringCbVPrintfA((char *)g_slog_buf, sizeof(g_slog_buf), format , p_arg); if (status) goto end; - status = RtlStringCchPrintfW(g_wlog_buf, sizeof(g_wlog_buf)/sizeof(g_wlog_buf[0]), L"%S", g_slog_buf); + status = RtlStringCchPrintfW(g_wlog_buf, sizeof(g_wlog_buf), L"%S", g_slog_buf); if (status) goto end; // vsnprintf_s((char *)g_slog_buf, sizeof(g_slog_buf), _TRUNCATE, format , p_arg); @@ -191,4 +191,3 @@ end: #endif /*_MLX4_DEBUG_H_ */ - -- 2.41.0