/* From known use-cases we expect about 10 entries in a receive list to be printed in the proc_fs. So PAGE_SIZE is definitely enough space here.  */
static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, struct net_device *dev)
/* From known use-cases we expect about 10 entries in a receive list to be printed in the proc_fs. So PAGE_SIZE is definitely enough space here.  */
static void can_print_rcvlist(struct seq_file *m, struct hlist_head *rx_list, struct net_device *dev)
{
	struct receiver *r;
	struct hlist_node *n;
	rcu_read_lock();
	hlist_for_each_entry_rcu(r, n, rx_list, list) {
		char *fmt = (r->can_id & CAN_EFF_FLAG)?
			"   %-5s  %08X  %08x  %08x  %08x  %8ld  %s\n" :
			"   %-5s     %03X    %08x  %08lx  %08lx  %8ld  %s\n";
		seq_printf(m, fmt, DNAME(dev), r->can_id, r->mask,
				(unsigned long)r->func, (unsigned long)r->data,
				r->matches, r->ident);
	}
	rcu_read_unlock();
}