Date: Thu, 28 Jun 2012 16:44:30 +0000 (UTC) From: "Pedro F. Giffuni" <pfg@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r237716 - head/cddl/contrib/opensolaris/lib/libdtrace/common Message-ID: <201206281644.q5SGiUQd086827@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: pfg Date: Thu Jun 28 16:44:29 2012 New Revision: 237716 URL: http://svn.freebsd.org/changeset/base/237716 Log: Safer fix for building with Clang. error: format specifies type 'long long' but the argument has type 'int64_t' (aka 'long') Reported by: Ed Maste Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c Modified: head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c ============================================================================== --- head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c Thu Jun 28 16:01:08 2012 (r237715) +++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c Thu Jun 28 16:44:29 2012 (r237716) @@ -761,7 +761,7 @@ dt_print_llquantize(dtrace_hdl_t *dtp, F step = next > nsteps ? next / nsteps : 1; if (first_bin == 0) { - (void) snprintf(c, sizeof (c), "< %ld", value); + (void) snprintf(c, sizeof (c), "< %lld", (long long)value); if (dt_printf(dtp, fp, "%16s ", c) < 0) return (-1);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201206281644.q5SGiUQd086827>