]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cfi_flash: Use __func__ macro instead of function name
authorMario Six <mario.six@gdsys.cc>
Fri, 26 Jan 2018 13:43:40 +0000 (14:43 +0100)
committerStefan Roese <sr@denx.de>
Mon, 29 Jan 2018 06:48:58 +0000 (07:48 +0100)
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 <mario.six@gdsys.cc>
Signed-off-by: Stefan Roese <sr@denx.de>
drivers/mtd/cfi_flash.c

index eebd641e36069770de38efd691771f958cb86561..6ae1ac871f5bb2736c462e63a7a60fddaa538350 100644 (file)
@@ -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;
 }