From: Mario Six Date: Fri, 26 Jan 2018 13:43:40 +0000 (+0100) Subject: cfi_flash: Use __func__ macro instead of function name X-Git-Tag: v2018.03-rc1~10^2~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38d2831d3b1bc618c36fcba855368e9ac239f3cc;p=platform%2Fkernel%2Fu-boot.git cfi_flash: Use __func__ macro instead of function name printf/debug statements should not include the file name as a hardcoded string, but instead use the __func__ macro. Fix all instances where this occurs. Signed-off-by: Mario Six Signed-off-by: Stefan Roese --- diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index eebd641..6ae1ac8 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -555,7 +555,7 @@ static int flash_is_busy(flash_info_t *info, flash_sect_t sect) default: retval = 0; } - debug("flash_is_busy: %d\n", retval); + debug("%s: %d\n", __func__, retval); return retval; }