staging: vc04_services: Use __func__
authorGenki Sky <sky@genki.is>
Wed, 6 Dec 2017 00:09:55 +0000 (19:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 Dec 2017 08:48:54 +0000 (09:48 +0100)
This was found using checkpatch.pl's EMBEDDED_FUNCTION_NAME warning.
It is easier to be consistent and always use __func__ instead of having
to remember to update any hardcoded references to the original name.

Signed-off-by: Genki Sky <sky@genki.is>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vc04_services/bcm2835-camera/mmal-vchiq.c

index 5ddea4f54bf746c545cd1887bb9f6e1b9c3ae93d..6c4d8b4c7cd9e82d223a8eb79790f7ed60d3eaca 100644 (file)
@@ -618,8 +618,8 @@ static void buffer_to_host_cb(struct vchiq_mmal_instance *instance,
        struct mmal_msg_context *msg_context;
        u32 handle;
 
-       pr_debug("buffer_to_host_cb: instance:%p msg:%p msg_len:%d\n",
-                instance, msg, msg_len);
+       pr_debug("%s: instance:%p msg:%p msg_len:%d\n",
+                __func__, instance, msg, msg_len);
 
        if (msg->u.buffer_from_host.drvbuf.magic == MMAL_MAGIC) {
                handle = msg->u.buffer_from_host.drvbuf.client_context;