|
19 | 19 | #include "dxgkrnl.h" |
20 | 20 | #include "hmgr.h" |
21 | 21 |
|
22 | | -#undef pr_fmt |
23 | | -#define pr_fmt(fmt) "dxgk: " fmt |
| 22 | +#undef dev_fmt |
| 23 | +#define dev_fmt(fmt) "dxgk: " fmt |
24 | 24 |
|
25 | 25 | const struct d3dkmthandle zerohandle; |
26 | 26 |
|
@@ -90,29 +90,29 @@ static bool is_handle_valid(struct hmgrtable *table, struct d3dkmthandle h, |
90 | 90 | struct hmgrentry *entry; |
91 | 91 |
|
92 | 92 | if (index >= table->table_size) { |
93 | | - DXG_ERR("Invalid index %x %d", h.v, index); |
| 93 | + DXG_TRACE("Invalid index %x %d", h.v, index); |
94 | 94 | return false; |
95 | 95 | } |
96 | 96 |
|
97 | 97 | entry = &table->entry_table[index]; |
98 | 98 | if (unique != entry->unique) { |
99 | | - DXG_ERR("Invalid unique %x %d %d %d %p", |
| 99 | + DXG_TRACE("Invalid unique %x %d %d %d %p", |
100 | 100 | h.v, unique, entry->unique, index, entry->object); |
101 | 101 | return false; |
102 | 102 | } |
103 | 103 |
|
104 | 104 | if (entry->destroyed && !ignore_destroyed) { |
105 | | - DXG_ERR("Invalid destroyed value"); |
| 105 | + DXG_TRACE("Invalid destroyed value"); |
106 | 106 | return false; |
107 | 107 | } |
108 | 108 |
|
109 | 109 | if (entry->type == HMGRENTRY_TYPE_FREE) { |
110 | | - DXG_ERR("Entry is freed %x %d", h.v, index); |
| 110 | + DXG_TRACE("Entry is freed %x %d", h.v, index); |
111 | 111 | return false; |
112 | 112 | } |
113 | 113 |
|
114 | 114 | if (t != HMGRENTRY_TYPE_FREE && t != entry->type) { |
115 | | - DXG_ERR("type mismatch %x %d %d", h.v, t, entry->type); |
| 115 | + DXG_TRACE("type mismatch %x %d %d", h.v, t, entry->type); |
116 | 116 | return false; |
117 | 117 | } |
118 | 118 |
|
@@ -500,7 +500,7 @@ void *hmgrtable_get_object_by_type(struct hmgrtable *table, |
500 | 500 | struct d3dkmthandle h) |
501 | 501 | { |
502 | 502 | if (!is_handle_valid(table, h, false, type)) { |
503 | | - DXG_ERR("Invalid handle %x", h.v); |
| 503 | + DXG_TRACE("Invalid handle %x", h.v); |
504 | 504 | return NULL; |
505 | 505 | } |
506 | 506 | return table->entry_table[get_index(h)].object; |
|
0 commit comments