Use the automatically defined __func__ macro instead of the function name,
so it stays correct when the function is renamed.

Co-developed-by: Andrey Khlopkov <ij72u...@stud.informatik.uni-erlangen.de>
Signed-off-by: Andrey Khlopkov <ij72u...@stud.informatik.uni-erlangen.de>
Signed-off-by: Philipp Gerlesberger <philipp.gerlesber...@fau.de>
---
 .../media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c        | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c 
b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c
index 4ba5b8f88a7d..3fb3c8c48f0b 100644
--- a/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c
+++ b/drivers/staging/media/atomisp/pci/runtime/rmgr/src/rmgr_vbuf.c
@@ -119,8 +119,7 @@ void ia_css_rmgr_refcount_retain_vbuf(struct 
ia_css_rmgr_vbuf_handle **handle)
 void ia_css_rmgr_refcount_release_vbuf(struct ia_css_rmgr_vbuf_handle **handle)
 {
        if ((!handle) || ((*handle) == NULL) || (((*handle)->count) == 0)) {
-               ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR,
-                                   "ia_css_rmgr_refcount_release_vbuf() 
invalid arguments!\n");
+               ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR, "%s invalid 
arguments!\n", __func__);
                return;
        }
        /* decrease reference count */
@@ -175,10 +174,9 @@ void ia_css_rmgr_uninit_vbuf(struct ia_css_rmgr_vbuf_pool 
*pool)
 {
        u32 i;
 
-       ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "ia_css_rmgr_uninit_vbuf()\n");
+       ia_css_debug_dtrace(IA_CSS_DEBUG_TRACE, "%s\n", __func__);
        if (!pool) {
-               ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR,
-                                   "ia_css_rmgr_uninit_vbuf(): NULL 
argument\n");
+               ia_css_debug_dtrace(IA_CSS_DEBUG_ERROR, "%s NULL argument\n", 
__func__);
                return;
        }
        if (pool->handles) {
-- 
2.20.1

Reply via email to