scsi: ufs: Remove stringize operator '#' restriction
authorBean Huo <beanhuo@micron.com>
Tue, 5 Jan 2021 11:34:41 +0000 (12:34 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 8 Jan 2021 03:29:10 +0000 (22:29 -0500)
commitc7c730ac6a88abbbc961f8838d28da85662389d0
tree781e5985c294d5f3cde9dc90017463f18f1076ec
parenta967ddb22d94eb476ccef983b5f2730fa4d184d0
scsi: ufs: Remove stringize operator '#' restriction

Current EM macro definition, we use stringize operator '#', which turns the
argument it precedes into a quoted string. Thus requires the symbol of
__print_symbolic() should be the string corresponding to the name of the
enum.

However, we have other cases, the symbol and enum name are not the same, we
can redefine EM/EMe, but there will introduce some redundant codes.  This
patch is to remove this restriction, let others reuse the current EM/EMe
definition.

Link: https://lore.kernel.org/r/20210105113446.16027-2-huobean@gmail.com
Acked-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Signed-off-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
include/trace/events/ufs.h