From: David S. Miller Date: Mon, 25 Mar 2013 18:12:55 +0000 (-0400) Subject: net: Print functions in /proc/net/ptype without the offset. X-Git-Tag: firefly_0821_release~3680^2~548^2~341 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=eaac5f3d3ad33547b299935e6db0cfc7be9a576a;p=firefly-linux-kernel-4.4.55.git net: Print functions in /proc/net/ptype without the offset. It's always zero. Signed-off-by: David S. Miller --- diff --git a/net/core/net-procfs.c b/net/core/net-procfs.c index 3174f1998ee6..569d355fec3e 100644 --- a/net/core/net-procfs.c +++ b/net/core/net-procfs.c @@ -271,7 +271,7 @@ static int ptype_seq_show(struct seq_file *seq, void *v) else seq_printf(seq, "%04x", ntohs(pt->type)); - seq_printf(seq, " %-8s %pF\n", + seq_printf(seq, " %-8s %pf\n", pt->dev ? pt->dev->name : "", pt->func); }