From: Patrick McHardy <kaber@trash.net>
To: "David S. Miller" <davem@davemloft.net>
Cc: Linux Netdev List <netdev@vger.kernel.org>
Subject: [NET_SCHED]: Fix warning
Date: Fri, 16 Mar 2007 14:35:04 +0100 [thread overview]
Message-ID: <45FA9D08.4010804@trash.net> (raw)
[-- 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;
}
next reply other threads:[~2007-03-16 13:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-03-16 13:35 Patrick McHardy [this message]
2007-03-16 19:35 ` [NET_SCHED]: Fix warning David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=45FA9D08.4010804@trash.net \
--to=kaber@trash.net \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).