Commit fcebda5a authored by Chuck Lever's avatar Chuck Lever

SUNRPC: Clean up the svc_xprt_flags() macro

Make this macro more conventional:
 - Use BIT() instead of open-coding " 1UL << "
 - Don't display the "XPT_" in every flag name
Reviewed-by: default avatarJeff Layton <jlayton@kernel.org>
Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
parent 4dbca1c3
...@@ -1819,20 +1819,20 @@ TRACE_EVENT(svc_stats_latency, ...@@ -1819,20 +1819,20 @@ TRACE_EVENT(svc_stats_latency,
#define show_svc_xprt_flags(flags) \ #define show_svc_xprt_flags(flags) \
__print_flags(flags, "|", \ __print_flags(flags, "|", \
{ (1UL << XPT_BUSY), "XPT_BUSY"}, \ { BIT(XPT_BUSY), "BUSY" }, \
{ (1UL << XPT_CONN), "XPT_CONN"}, \ { BIT(XPT_CONN), "CONN" }, \
{ (1UL << XPT_CLOSE), "XPT_CLOSE"}, \ { BIT(XPT_CLOSE), "CLOSE" }, \
{ (1UL << XPT_DATA), "XPT_DATA"}, \ { BIT(XPT_DATA), "DATA" }, \
{ (1UL << XPT_TEMP), "XPT_TEMP"}, \ { BIT(XPT_TEMP), "TEMP" }, \
{ (1UL << XPT_DEAD), "XPT_DEAD"}, \ { BIT(XPT_DEAD), "DEAD" }, \
{ (1UL << XPT_CHNGBUF), "XPT_CHNGBUF"}, \ { BIT(XPT_CHNGBUF), "CHNGBUF" }, \
{ (1UL << XPT_DEFERRED), "XPT_DEFERRED"}, \ { BIT(XPT_DEFERRED), "DEFERRED" }, \
{ (1UL << XPT_OLD), "XPT_OLD"}, \ { BIT(XPT_OLD), "OLD" }, \
{ (1UL << XPT_LISTENER), "XPT_LISTENER"}, \ { BIT(XPT_LISTENER), "LISTENER" }, \
{ (1UL << XPT_CACHE_AUTH), "XPT_CACHE_AUTH"}, \ { BIT(XPT_CACHE_AUTH), "CACHE_AUTH" }, \
{ (1UL << XPT_LOCAL), "XPT_LOCAL"}, \ { BIT(XPT_LOCAL), "LOCAL" }, \
{ (1UL << XPT_KILL_TEMP), "XPT_KILL_TEMP"}, \ { BIT(XPT_KILL_TEMP), "KILL_TEMP" }, \
{ (1UL << XPT_CONG_CTRL), "XPT_CONG_CTRL"}) { BIT(XPT_CONG_CTRL), "CONG_CTRL" })
TRACE_EVENT(svc_xprt_create_err, TRACE_EVENT(svc_xprt_create_err,
TP_PROTO( TP_PROTO(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment