Re: [PATCH 1/2] mm, printk: introduce new format string for flags

From: Vlastimil Babka
Date: Fri Dec 04 2015 - 09:15:53 EST


On 12/03/2015 07:38 PM, yalin wang wrote:
thatâs all, see cpumask_pr_args(masks) macro,
it also use macro and %*pb to print cpu mask .
i think this method is not very complex to use .

Well, one also has to write the appropriate translation tables.

search source code ,
there is lots of printk to print flag into hex number :
$ grep -n -r 'printk.*flag.*%xâ .
it will be great if this flag string print is generic.

I think it can always be done later, this is an internal API. For now we just have 3 quite generic flags, so let's not over-engineer things right now.

Thanks

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/