lkml.org 
[lkml]   [2018]   [Jul]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 4/4] staging: gasket: Use __func__ instead of hardcoded string - Style
On Thu, Jul 12, 2018 at 09:27:15PM +0200, Felix Siegel wrote:
> Changed logging statements to use %s and __func__ instead of hard coding
> the function name in a string.
>
> Signed-off-by: Felix Siegel <felix.siegel@posteo.de>
> ---
> drivers/staging/gasket/apex_driver.c | 15 ++++++++-------
> drivers/staging/gasket/gasket_core.c | 11 ++++++-----
> drivers/staging/gasket/gasket_ioctl.c | 4 ++--
> drivers/staging/gasket/gasket_page_table.c | 13 ++++++++-----
> 4 files changed, 24 insertions(+), 19 deletions(-)
>
> diff --git a/drivers/staging/gasket/apex_driver.c b/drivers/staging/gasket/apex_driver.c
> index ffcc59d..735d43d 100644
> --- a/drivers/staging/gasket/apex_driver.c
> +++ b/drivers/staging/gasket/apex_driver.c
> @@ -341,7 +341,7 @@ static int apex_add_dev_cb(struct gasket_dev *gasket_dev)
> ulong page_table_ready, msix_table_ready;
> int retries = 0;
>
> - gasket_log_error(gasket_dev, "apex_add_dev_cb.");
> + gasket_log_error(gasket_dev, "%s.", __func__);

Function calls that do nothing but log "Look at this function I just
entered/exited!" need to just be deleted entirely, as ftrace should be
used instead.

Care to do that here, and then send a patch for the remaining messages
that do need __func__?

thanks,

greg k-h
\
 
 \ /
  Last update: 2018-07-15 22:06    [W:0.036 / U:1.968 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site