提交 514bca32 编写于 作者: P Patrick McHardy 提交者: David S. Miller

[NET_SCHED]: Fix warning

net/sched/sch_api.c: In function 'psched_show':
net/sched/sch_api.c:1219: warning: format '%08x' expects type 'unsigned int', but argument 6 has type 's64'
Signed-off-by: NPatrick McHardy <kaber@trash.net>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 bb239acf
...@@ -1216,7 +1216,8 @@ static int psched_show(struct seq_file *seq, void *v) ...@@ -1216,7 +1216,8 @@ static int psched_show(struct seq_file *seq, void *v)
{ {
seq_printf(seq, "%08x %08x %08x %08x\n", seq_printf(seq, "%08x %08x %08x %08x\n",
(u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1), (u32)NSEC_PER_USEC, (u32)PSCHED_US2NS(1),
1000000, (u32)NSEC_PER_SEC/ktime_to_ns(KTIME_MONOTONIC_RES)); 1000000,
(u32)NSEC_PER_SEC/(u32)ktime_to_ns(KTIME_MONOTONIC_RES));
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册