diff options
author | Alon Levy <alevy@redhat.com> | 2011-06-20 12:29:34 +0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2011-07-31 12:34:29 +0300 |
commit | b32e503e3a025d8b7d9c3f4a3e6d9bb14cfdfcaf (patch) | |
tree | 095f5daf0fe54edbf0efb869dfdfece136a841c4 | |
parent | dfcf45445921e0901c539f581c23fd64e776e66f (diff) |
display: add a few debug prints (level=3)
-rw-r--r-- | display/driver.c | 1 | ||||
-rw-r--r-- | display/res.c | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/display/driver.c b/display/driver.c index cc5559d..134692f 100644 --- a/display/driver.c +++ b/display/driver.c @@ -1269,6 +1269,7 @@ HBITMAP APIENTRY DrvCreateDeviceBitmap(DHPDEV dhpdev, SIZEL size, ULONG format) if (!surface_id) { goto out_error; } + DEBUG_PRINT((pdev, 3, "%s: %p: %d\n", __FUNCTION__, pdev, surface_id)); hbitmap = CreateDeviceBitmap(pdev, size, pdev->bitmap_format, &phys_mem, &base_mem, surface_id, DEVICE_BITMAP_ALLOCATION_TYPE_VRAM); diff --git a/display/res.c b/display/res.c index cb578e6..e8bff43 100644 --- a/display/res.c +++ b/display/res.c @@ -604,6 +604,7 @@ void InitResources(PDev *pdev) UINT32 id; DevRes **new_global_res; + DEBUG_PRINT((pdev, 3, "%s: entry\n", __FUNCTION__)); RtlZeroMemory(pdev->update_trace_items, sizeof(pdev->update_trace_items)); RingInit(&pdev->update_trace); for (i = 0; i < NUM_UPDATE_TRACE_ITEMS; i++) { @@ -631,10 +632,12 @@ void InitResources(PDev *pdev) if (global_res[id] == NULL) { global_res[id] = EngAllocMem(FL_ZERO_MEMORY, sizeof(DevRes), ALLOC_TAG); pdev->Res = global_res[id]; + DEBUG_PRINT((pdev, 3, "%s: calling InitRes (id == %d)\n", __FUNCTION__, id)); InitRes(pdev); } else { pdev->Res = global_res[id]; } + DEBUG_PRINT((pdev, 3, "%s: exit\n", __FUNCTION__)); EngReleaseSemaphore(res_sem); } |