Commit a301c237 authored by Linus Torvalds's avatar Linus Torvalds

"tv_sec" is unsigned long.

parent cc75cd5e
......@@ -1162,7 +1162,7 @@ void format_corename(char *corename, const char *pattern, long signr)
struct timeval tv;
do_gettimeofday(&tv);
rc = snprintf(out_ptr, out_end - out_ptr,
"%d", tv.tv_sec);
"%lu", tv.tv_sec);
if (rc > out_end - out_ptr)
goto out;
out_ptr += rc;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment