From: Joel Soete <soete.joel@tiscali.be>
To: parisc-linux@parisc-linux.org
Subject: [parisc-linux] warning: long unsigned int format, time_t arg
Date: Sun, 21 Sep 2003 17:59:50 +0000 [thread overview]
Message-ID: <3F6DE716.4030104@tiscali.be> (raw)
Hi all,
during compiling 2.6.0-test5-pa6 with gcc-3.3, i noticed some warning of
type:
[snip]
CC fs/exec.o
fs/exec.c: In function `format_corename':
fs/exec.c:1219: warning: long unsigned int format, time_t arg (arg 4)
[snip]
for which I would suggest the following patch:
hpalin:/Debian-apt/SRC/linux-2.6.0-test5-pa6/fs# diff -Nau exec.c.Orig
exec.c.new
--- exec.c.Orig 2003-09-10 18:18:40.000000000 +0200
+++ exec.c.new 2003-09-16 23:55:12.000000000 +0200
@@ -1216,7 +1216,7 @@
struct timeval tv;
do_gettimeofday(&tv);
rc = snprintf(out_ptr, out_end - out_ptr,
- "%lu", tv.tv_sec);
+ "%lu", (unsigned long int)tv.tv_sec);
if (rc > out_end - out_ptr)
goto out;
out_ptr += rc;
I would like your opinion before submiting (hmm to Andrew I presume?)
Thanks in advance,
Joel
next reply other threads:[~2003-09-21 17:59 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-21 17:59 Joel Soete [this message]
2003-09-21 18:46 ` [parisc-linux] warning: long unsigned int format, time_t arg John David Anglin
2003-09-21 19:04 ` Matthew Wilcox
2003-09-21 19:16 ` John David Anglin
2003-09-21 19:32 ` Matthew Wilcox
2003-09-22 6:48 ` Jan-Benedict Glaw
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=3F6DE716.4030104@tiscali.be \
--to=soete.joel@tiscali.be \
--cc=parisc-linux@parisc-linux.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