diff options
author | Mateusz Guzik <mjg@FreeBSD.org> | 2020-08-05 20:42:08 +0000 |
---|---|---|
committer | Mateusz Guzik <mjg@FreeBSD.org> | 2020-08-05 20:42:08 +0000 |
commit | ec3b2a79b5b5cae75c5c6925068fdd202ef644fe (patch) | |
tree | d51c429b3d8f85faeed18efe8ef506b283efe888 /usr.sbin/pmcstat | |
parent | bb62c418fd86676b52c5a4c7273f9992917c7056 (diff) | |
download | src-ec3b2a79b5b5cae75c5c6925068fdd202ef644fe.tar.gz src-ec3b2a79b5b5cae75c5c6925068fdd202ef644fe.zip |
pmcstat: fix build on non-64 bit platforms
Notes
Notes:
svn path=/head/; revision=363932
Diffstat (limited to 'usr.sbin/pmcstat')
-rw-r--r-- | usr.sbin/pmcstat/pmcpl_callgraph.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.sbin/pmcstat/pmcpl_callgraph.c b/usr.sbin/pmcstat/pmcpl_callgraph.c index 4cae6437486c..f6b662fdeb14 100644 --- a/usr.sbin/pmcstat/pmcpl_callgraph.c +++ b/usr.sbin/pmcstat/pmcpl_callgraph.c @@ -58,6 +58,7 @@ __FBSDID("$FreeBSD$"); #include <errno.h> #include <fcntl.h> #include <gelf.h> +#include <inttypes.h> #include <libgen.h> #include <limits.h> #include <netdb.h> @@ -501,7 +502,7 @@ pmcstat_cgnode_topprint(struct pmcstat_cgnode *cg, (void *)(cg->pcg_image->pi_vaddr + cg->pcg_func)); break; case FLAG_SHOW_OFFSET: - snprintf(ns, sizeof(ns), "%s+%#0lx", + snprintf(ns, sizeof(ns), "%s+%#0" PRIx64, pmcstat_string_unintern(sym->ps_name), cg->pcg_func - sym->ps_start); break; |