Date: Sun, 20 Mar 2016 23:26:53 +0000 (UTC) From: Alexander Motin <mav@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r297088 - stable/10/cddl/contrib/opensolaris/cmd/plockstat Message-ID: <201603202326.u2KNQrv0018452@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: mav Date: Sun Mar 20 23:26:52 2016 New Revision: 297088 URL: https://svnweb.freebsd.org/changeset/base/297088 Log: MFC r291637 (by bdrewery): Fix the build for non-amd64. Modified: stable/10/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c Directory Properties: stable/10/ (props changed) Modified: stable/10/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c ============================================================================== --- stable/10/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c Sun Mar 20 23:20:16 2016 (r297087) +++ stable/10/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c Sun Mar 20 23:26:52 2016 (r297088) @@ -515,7 +515,7 @@ getsym(struct ps_prochandle *P, uintptr_ if (P == NULL || Pxlookup_by_addr(P, addr, name, sizeof (name), &sym, &info) != 0) { - (void) snprintf(buf, size, "%#lx", addr); + (void) snprintf(buf, size, "%#lx", (unsigned long)addr); return (0); } #ifdef illumos @@ -537,7 +537,7 @@ getsym(struct ps_prochandle *P, uintptr_ size -= len; if (sym.st_value != addr) - len = snprintf(buf, size, "+%#lx", addr - sym.st_value); + len = snprintf(buf, size, "+%#lx", (unsigned long)(addr - sym.st_value)); if (nolocks && strcmp("libc.so.1", map->pr_mapname) == 0 && (strstr("mutex", name) == 0 ||
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201603202326.u2KNQrv0018452>