[Spice-devel] [PATCH qxl-win v3] miniport/qxl: SetVideoModeInfo: pass QXLExtension for debug prints

Alon Levy alevy at redhat.com
Thu Jul 7 02:43:18 PDT 2011


---
 miniport/qxl.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/miniport/qxl.c b/miniport/qxl.c
index f184cf8..4747cd9 100644
--- a/miniport/qxl.c
+++ b/miniport/qxl.c
@@ -420,11 +420,11 @@ VP_STATUS Prob(QXLExtension *dev, VIDEO_PORT_CONFIG_INFO *conf_info,
 }
 
 #if defined(ALLOC_PRAGMA)
-VP_STATUS SetVideoModeInfo(PVIDEO_MODE_INFORMATION video_mode, QXLMode *qxl_mode);
+VP_STATUS SetVideoModeInfo(QXLExtension *dev, PVIDEO_MODE_INFORMATION video_mode, QXLMode *qxl_mode);
 #pragma alloc_text(PAGE, SetVideoModeInfo)
 #endif
 
-VP_STATUS SetVideoModeInfo(PVIDEO_MODE_INFORMATION video_mode, QXLMode *qxl_mode)
+VP_STATUS SetVideoModeInfo(QXLExtension *dev, PVIDEO_MODE_INFORMATION video_mode, QXLMode *qxl_mode)
 {
     ULONG color_bits;
     PAGED_CODE();
@@ -530,7 +530,7 @@ VP_STATUS InitModes(QXLExtension *dev)
 #endif
     VideoPortZeroMemory(modes_info, sizeof(VIDEO_MODE_INFORMATION) * n_modes);
     for (i = 0; i < n_modes; i++) {
-        error = SetVideoModeInfo(&modes_info[i], &modes->modes[i]);
+        error = SetVideoModeInfo(dev, &modes_info[i], &modes->modes[i]);
         if (error != NO_ERROR) {
             VideoPortFreePool(dev, modes_info);
             DEBUG_PRINT((dev, 0, "%s: set video mode failed\n", __FUNCTION__));
-- 
1.7.5.4



More information about the Spice-devel mailing list