Re: [PATCH v1 1/2] Add FAT messages to printk index

From: Jonathan Lassoff
Date: Fri Mar 18 2022 - 13:22:11 EST


On Thu, 17 Mar 2022 at 22:33, OGAWA Hirofumi
<hirofumi@xxxxxxxxxxxxxxxxxx> wrote:

> Looks good. I prefer removing duplication of message prefix though, not
> strong opinion.
>
> e.g.
> #define FAT_MSG_PFX "%sFAT-fs (%s): "
> printk_index_subsys_emit(FAT_MSG_PFX, level, fmt, ##args);\
> _printk(FAT_MSG_PFX "%pV\n", level, sb->s_id, &vaf);
>
> Anyway, if this is same style with others, it is ok.

I would agree that defining a macro for the prefix may be useful. It
could be a nice hint to future developers that these things are
somewhat connected.

I can follow-up with a PATCH v2 to include what you suggest.

-- jof