In cddl/contrib/opensolaris/lib/libdtrace/i386/dt_isadep.c, use the

correct printf format for an unsigned long.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-15 22:37:33 +00:00
parent a2f16036af
commit bb15ca603f

View File

@ -436,7 +436,7 @@ dt_pid_create_glob_offset_probes(struct ps_prochandle *P, dtrace_hdl_t *dtp,
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;