Skip to content

Commit 11848e9

Browse files
committed
NFSD: Display copy stateids with conventional print formatting
Make it easier to grep for s2s COPY stateids in trace logs: Use the same display format in nfsd_copy_class as is used to display other stateids. Reviewed-by: Jeff Layton <[email protected]> Signed-off-by: Chuck Lever <[email protected]>
1 parent aadc3bb commit 11848e9

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

fs/nfsd/trace.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -2172,14 +2172,14 @@ DECLARE_EVENT_CLASS(nfsd_copy_class,
21722172
sizeof(struct sockaddr_in6));
21732173
),
21742174
TP_printk("client=%pISpc intra=%d async=%d "
2175-
"src_stateid[si_generation:0x%x cl_boot:0x%x cl_id:0x%x so_id:0x%x] "
2176-
"dst_stateid[si_generation:0x%x cl_boot:0x%x cl_id:0x%x so_id:0x%x] "
2175+
"src_client %08x:%08x src_stateid %08x:%08x "
2176+
"dst_client %08x:%08x dst_stateid %08x:%08x "
21772177
"cp_src_pos=%llu cp_dst_pos=%llu cp_count=%llu",
21782178
__get_sockaddr(addr), __entry->intra, __entry->async,
2179-
__entry->src_si_generation, __entry->src_cl_boot,
2180-
__entry->src_cl_id, __entry->src_so_id,
2181-
__entry->dst_si_generation, __entry->dst_cl_boot,
2182-
__entry->dst_cl_id, __entry->dst_so_id,
2179+
__entry->src_cl_boot, __entry->src_cl_id,
2180+
__entry->src_so_id, __entry->src_si_generation,
2181+
__entry->dst_cl_boot, __entry->dst_cl_id,
2182+
__entry->dst_so_id, __entry->dst_si_generation,
21832183
__entry->src_cp_pos, __entry->dst_cp_pos, __entry->cp_count
21842184
)
21852185
);

0 commit comments

Comments
 (0)