staging: most: replace function name to __func__
authorSidong Yang <realwakka@gmail.com>
Sun, 21 Jan 2018 16:05:26 +0000 (16:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jan 2018 10:44:08 +0000 (11:44 +0100)
Fix checkpatch.pl warning message about logging code. Previous code
contains hard coded function name. Fix this code by using __func__
macro.

Signed-off-by: Sidong Yang <realwakka@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/dim2/dim2.c

index 21e3fb4..f9bc7de 100644 (file)
@@ -151,7 +151,7 @@ void dimcb_io_write(u32 __iomem *ptr32, u32 value)
  */
 void dimcb_on_error(u8 error_id, const char *error_message)
 {
-       pr_err("dimcb_on_error: error_id - %d, error_message - %s\n", error_id,
+       pr_err("%s: error_id - %d, error_message - %s\n", __func__, error_id,
               error_message);
 }