@@ -48,7 +48,7 @@ static struct ia_css_refcount_entry *refcount_find_entry(ia_css_ptr ptr,
48
48
return NULL ;
49
49
if (!myrefcount .items ) {
50
50
ia_css_debug_dtrace (IA_CSS_DEBUG_ERROR ,
51
- "refcount_find_entry (): Ref count not initialized!\n" );
51
+ "%s (): Ref count not initialized!\n" , __func__ );
52
52
return NULL ;
53
53
}
54
54
@@ -73,12 +73,12 @@ int ia_css_refcount_init(uint32_t size)
73
73
74
74
if (size == 0 ) {
75
75
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
76
- "ia_css_refcount_init (): Size of 0 for Ref count init!\n" );
76
+ "%s (): Size of 0 for Ref count init!\n" , __func__ );
77
77
return - EINVAL ;
78
78
}
79
79
if (myrefcount .items ) {
80
80
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
81
- "ia_css_refcount_init (): Ref count is already initialized\n" );
81
+ "%s (): Ref count is already initialized\n" , __func__ );
82
82
return - EINVAL ;
83
83
}
84
84
myrefcount .items =
@@ -99,7 +99,7 @@ void ia_css_refcount_uninit(void)
99
99
u32 i ;
100
100
101
101
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
102
- "ia_css_refcount_uninit () entry\n" );
102
+ "%s () entry\n" , __func__ );
103
103
for (i = 0 ; i < myrefcount .size ; i ++ ) {
104
104
/* driver verifier tool has issues with &arr[i]
105
105
and prefers arr + i; as these are actually equivalent
@@ -120,7 +120,7 @@ void ia_css_refcount_uninit(void)
120
120
myrefcount .items = NULL ;
121
121
myrefcount .size = 0 ;
122
122
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
123
- "ia_css_refcount_uninit () leave\n" );
123
+ "%s () leave\n" , __func__ );
124
124
}
125
125
126
126
ia_css_ptr ia_css_refcount_increment (s32 id , ia_css_ptr ptr )
@@ -133,7 +133,7 @@ ia_css_ptr ia_css_refcount_increment(s32 id, ia_css_ptr ptr)
133
133
entry = refcount_find_entry (ptr , false);
134
134
135
135
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
136
- "ia_css_refcount_increment (%x) 0x%x\n" , id , ptr );
136
+ "%s (%x) 0x%x\n" , __func__ , id , ptr );
137
137
138
138
if (!entry ) {
139
139
entry = refcount_find_entry (ptr , true);
@@ -145,7 +145,7 @@ ia_css_ptr ia_css_refcount_increment(s32 id, ia_css_ptr ptr)
145
145
146
146
if (entry -> id != id ) {
147
147
ia_css_debug_dtrace (IA_CSS_DEBUG_ERROR ,
148
- "ia_css_refcount_increment (): Ref count IDS do not match!\n" );
148
+ "%s (): Ref count IDS do not match!\n" , __func__ );
149
149
return mmgr_NULL ;
150
150
}
151
151
@@ -165,7 +165,7 @@ bool ia_css_refcount_decrement(s32 id, ia_css_ptr ptr)
165
165
struct ia_css_refcount_entry * entry ;
166
166
167
167
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
168
- "ia_css_refcount_decrement (%x) 0x%x\n" , id , ptr );
168
+ "%s (%x) 0x%x\n" , __func__ , id , ptr );
169
169
170
170
if (ptr == mmgr_NULL )
171
171
return false;
@@ -175,7 +175,7 @@ bool ia_css_refcount_decrement(s32 id, ia_css_ptr ptr)
175
175
if (entry ) {
176
176
if (entry -> id != id ) {
177
177
ia_css_debug_dtrace (IA_CSS_DEBUG_ERROR ,
178
- "ia_css_refcount_decrement (): Ref count IDS do not match!\n" );
178
+ "%s (): Ref count IDS do not match!\n" , __func__ );
179
179
return false;
180
180
}
181
181
if (entry -> count > 0 ) {
@@ -225,8 +225,8 @@ void ia_css_refcount_clear(s32 id, clear_func clear_func_ptr)
225
225
u32 count = 0 ;
226
226
227
227
assert (clear_func_ptr );
228
- ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE , "ia_css_refcount_clear (%x)\n" ,
229
- id );
228
+ ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE , "%s (%x)\n" ,
229
+ __func__ , id );
230
230
231
231
for (i = 0 ; i < myrefcount .size ; i ++ ) {
232
232
/* driver verifier tool has issues with &arr[i]
@@ -236,14 +236,14 @@ void ia_css_refcount_clear(s32 id, clear_func clear_func_ptr)
236
236
entry = myrefcount .items + i ;
237
237
if ((entry -> data != mmgr_NULL ) && (entry -> id == id )) {
238
238
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
239
- "ia_css_refcount_clear : %x: 0x%x\n" ,
239
+ "%s : %x: 0x%x\n" , __func__ ,
240
240
id , entry -> data );
241
241
if (clear_func_ptr ) {
242
242
/* clear using provided function */
243
243
clear_func_ptr (entry -> data );
244
244
} else {
245
245
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
246
- "ia_css_refcount_clear : using hmm_free: no clear_func\n" );
246
+ "%s : using hmm_free: no clear_func\n" , __func__ );
247
247
hmm_free (entry -> data );
248
248
}
249
249
@@ -260,7 +260,7 @@ void ia_css_refcount_clear(s32 id, clear_func clear_func_ptr)
260
260
}
261
261
}
262
262
ia_css_debug_dtrace (IA_CSS_DEBUG_TRACE ,
263
- "ia_css_refcount_clear (%x): cleared %d\n" , id ,
263
+ "%s (%x): cleared %d\n" , __func__ , id ,
264
264
count );
265
265
}
266
266
0 commit comments