]> git.baikalelectronics.ru Git - kernel.git/commitdiff
rxrpc: Fix trace string
authorDavid Howells <dhowells@redhat.com>
Wed, 17 Jun 2020 21:50:33 +0000 (22:50 +0100)
committerDavid Howells <dhowells@redhat.com>
Wed, 17 Jun 2020 21:51:01 +0000 (22:51 +0100)
The trace symbol printer (__print_symbolic()) ignores symbols that map to
an empty string and prints the hex value instead.

Fix the symbol for rxrpc_cong_no_change to " -" instead of "" to avoid
this.

Fixes: 5e5802052c95 ("rxrpc: Fix handling of enums-to-string translation in tracing")
Signed-off-by: David Howells <dhowells@redhat.com>
include/trace/events/rxrpc.h

index ba9efdc848f970b1b05e9fd0a30091a37159029c..059b6e45a02833881bf9f61c13ca523b16266447 100644 (file)
@@ -400,7 +400,7 @@ enum rxrpc_tx_point {
        EM(rxrpc_cong_begin_retransmission,     " Retrans") \
        EM(rxrpc_cong_cleared_nacks,            " Cleared") \
        EM(rxrpc_cong_new_low_nack,             " NewLowN") \
-       EM(rxrpc_cong_no_change,                "") \
+       EM(rxrpc_cong_no_change,                " -") \
        EM(rxrpc_cong_progress,                 " Progres") \
        EM(rxrpc_cong_retransmit_again,         " ReTxAgn") \
        EM(rxrpc_cong_rtt_window_end,           " RttWinE") \