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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"