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
This commit is contained in:
Pedro F. Giffuni 2012-06-28 16:44:29 +00:00
parent b1754ad17b
commit fed980b201
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=237716

View File

@ -761,7 +761,7 @@ dt_print_llquantize(dtrace_hdl_t *dtp, FILE *fp, const void *addr,
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);