Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Dec 2011 22:37:33 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r228548 - head/cddl/contrib/opensolaris/lib/libdtrace/i386
Message-ID:  <201112152237.pBFMbX6J073839@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Thu Dec 15 22:37:33 2011
New Revision: 228548
URL: http://svn.freebsd.org/changeset/base/228548

Log:
  In cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c, use the
  correct printf format for an unsigned long.
  
  MFC after:	1 week

Modified:
  head/cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c

Modified: head/cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c
==============================================================================
--- head/cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c	Thu Dec 15 22:10:27 2011	(r228547)
+++ head/cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c	Thu Dec 15 22:37:33 2011	(r228548)
@@ -436,7 +436,7 @@ dt_pid_create_glob_offset_probes(struct 
 		char name[sizeof (i) * 2 + 1];
 
 		for (i = 0; i < end; i += size) {
-			(void) snprintf(name, sizeof (name), "%x", i);
+			(void) snprintf(name, sizeof (name), "%lx", i);
 			if (gmatch(name, pattern))
 				ftp->ftps_offs[ftp->ftps_noffs++] = i;
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112152237.pBFMbX6J073839>