summaryrefslogtreecommitdiff
path: root/cddl
diff options
context:
space:
mode:
authorBryan Drewery <bdrewery@FreeBSD.org>2015-12-02 02:11:38 +0000
committerBryan Drewery <bdrewery@FreeBSD.org>2015-12-02 02:11:38 +0000
commite3c6864e80d47710842e9f3107e5c0350b1b87e3 (patch)
tree079cad87989eda5cf72ee0878d1064490af27c6b /cddl
parent03173d2ff0ccd53a36e09a70405febcd2e907e5d (diff)
downloadsrc-test2-e3c6864e80d47710842e9f3107e5c0350b1b87e3.tar.gz
src-test2-e3c6864e80d47710842e9f3107e5c0350b1b87e3.zip
Notes
Diffstat (limited to 'cddl')
-rw-r--r--cddl/contrib/opensolaris/cmd/plockstat/plockstat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c b/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c
index 8dfb0ba25b81..e21567be5c52 100644
--- a/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c
+++ b/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c
@@ -515,7 +515,7 @@ getsym(struct ps_prochandle *P, uintptr_t addr, char *buf, size_t size,
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_t addr, char *buf, size_t size,
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 ||