瀏覽代碼

net: Print functions in /proc/net/ptype without the offset.

It's always zero.

Signed-off-by: David S. Miller <davem@davemloft.net>
David S. Miller 12 年之前
父節點
當前提交
eaac5f3d3a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/core/net-procfs.c

+ 1 - 1
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);
 	}