Date: Sat, 17 Dec 2011 13:52:53 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r228626 - head/usr.bin/csup Message-ID: <201112171352.pBHDqr9l061685@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Sat Dec 17 13:52:53 2011 New Revision: 228626 URL: http://svn.freebsd.org/changeset/base/228626 Log: In usr.bin/csup/proto.c, use the correct printf length modifier to print an off_t. MFC after: 1 week Modified: head/usr.bin/csup/proto.c Modified: head/usr.bin/csup/proto.c ============================================================================== --- head/usr.bin/csup/proto.c Sat Dec 17 13:14:44 2011 (r228625) +++ head/usr.bin/csup/proto.c Sat Dec 17 13:52:53 2011 (r228626) @@ -35,6 +35,7 @@ #include <assert.h> #include <err.h> #include <errno.h> +#include <inttypes.h> #include <netdb.h> #include <pthread.h> #include <signal.h> @@ -751,7 +752,7 @@ proto_printf(struct stream *wr, const ch break; case 'O': off = va_arg(ap, off_t); - rv = stream_printf(wr, "%llu", off); + rv = stream_printf(wr, "%" PRId64, off); break; case 'S': s = va_arg(ap, char *);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112171352.pBHDqr9l061685>