netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [NET_SCHED]: Fix warning
@ 2007-03-16 13:35 Patrick McHardy
  2007-03-16 19:35 ` David Miller
  0 siblings, 1 reply; 2+ messages in thread
From: Patrick McHardy @ 2007-03-16 13:35 UTC (permalink / raw)
  To: David S. Miller; +Cc: Linux Netdev List

[-- Attachment #1: Type: text/plain, Size: 86 bytes --]

Fix a warning introduced by my patches, seems like I didn't pay
enough attention ..



[-- Attachment #2: x --]
[-- Type: text/plain, Size: 1070 bytes --]

[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: Patrick McHardy <kaber@trash.net>

---
commit 4637e33149600f53399e4f36c89f6818671ebc87
tree 966f51f002a2ed08d3a3a6c2981429c63e8ce7b0
parent 20bac6a57d8d37deecd8b8101269542fe2c625b0
author Patrick McHardy <kaber@trash.net> Fri, 16 Mar 2007 14:21:37 +0100
committer Patrick McHardy <kaber@trash.net> Fri, 16 Mar 2007 14:21:37 +0100

 net/sched/sch_api.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/net/sched/sch_api.c b/net/sched/sch_api.c
index 047ae62..ecbdc6b 100644
--- a/net/sched/sch_api.c
+++ b/net/sched/sch_api.c
@@ -1216,7 +1216,8 @@ static int psched_show(struct seq_file *
 {
 	seq_printf(seq, "%08x %08x %08x %08x\n",
 		   (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;
 }

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [NET_SCHED]: Fix warning
  2007-03-16 13:35 [NET_SCHED]: Fix warning Patrick McHardy
@ 2007-03-16 19:35 ` David Miller
  0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2007-03-16 19:35 UTC (permalink / raw)
  To: kaber; +Cc: netdev

From: Patrick McHardy <kaber@trash.net>
Date: Fri, 16 Mar 2007 14:35:04 +0100

> Fix a warning introduced by my patches, seems like I didn't pay
> enough attention ..

Applied, thanks Patrick.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-03-16 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-16 13:35 [NET_SCHED]: Fix warning Patrick McHardy
2007-03-16 19:35 ` David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).