svn commit: r237716 -
head/cddl/contrib/opensolaris/lib/libdtrace/common
Pedro F. Giffuni
pfg at FreeBSD.org
Thu Jun 28 16:44:30 UTC 2012
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);
More information about the svn-src-head
mailing list