Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Jun 2012 15:38:14 +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: r237714 - head/cddl/contrib/opensolaris/lib/libdtrace/common
Message-ID:  <201206281538.q5SFcE4h084116@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pfg
Date: Thu Jun 28 15:38:14 2012
New Revision: 237714
URL: http://svn.freebsd.org/changeset/base/237714

Log:
  Fix build 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 14:26:55 2012	(r237713)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/common/dt_consume.c	Thu Jun 28 15:38:14 2012	(r237714)
@@ -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), "< %lld", value);
+		(void) snprintf(c, sizeof (c), "< %ld", 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?201206281538.q5SFcE4h084116>