Author: bdrewery
Date: Wed Dec  2 02:11:38 2015
New Revision: 291637
URL: https://svnweb.freebsd.org/changeset/base/291637

Log:
  Fix the build for non-amd64.

Modified:
  head/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c

Modified: head/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c
==============================================================================
--- head/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c     Wed Dec  2 
01:55:14 2015        (r291636)
+++ head/cddl/contrib/opensolaris/cmd/plockstat/plockstat.c     Wed Dec  2 
02:11:38 2015        (r291637)
@@ -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 ||
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to