• Takashi Iwai's avatar
    exfat: Expand exfat_err() and co directly to pr_*() macro · 6425baab
    Takashi Iwai authored
    Currently the error and info messages handled by exfat_err() and co
    are tossed to exfat_msg() function that does nothing but passes the
    strings with printk() invocation.  Not only that this is more overhead
    by the indirect calls, but also this makes harder to extend for the
    debug print usage; because of the direct printk() call, you cannot
    make it for dynamic debug or without debug like the standard helpers
    such as pr_debug() or dev_dbg().
    
    For addressing the problem, this patch replaces exfat_*() macro to
    expand to pr_*() directly.  Along with it, add the new exfat_debug()
    macro that is expanded to pr_debug() (which output can be gracefully
    suppressed via dyndbg).
    Reviewed-by: default avatarPetr Vorel <pvorel@suse.cz>
    Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
    Signed-off-by: default avatarNamjae Jeon <linkinjeon@kernel.org>
    6425baab
exfat_fs.h 17.5 KB