summaryrefslogtreecommitdiffstats
path: root/lib/libc/gmon
diff options
context:
space:
mode:
authorkuriyama <kuriyama@FreeBSD.org>2004-09-10 05:44:17 +0000
committerkuriyama <kuriyama@FreeBSD.org>2004-09-10 05:44:17 +0000
commit3deecb5cd52190c4f2779b92625e86c06342f9c6 (patch)
tree0d98b4e76bec4c1b35654daeda82dcc94b68ed3a /lib/libc/gmon
parent473098d94ade3efcae370241431267ceb7142248 (diff)
downloadFreeBSD-src-3deecb5cd52190c4f2779b92625e86c06342f9c6.zip
FreeBSD-src-3deecb5cd52190c4f2779b92625e86c06342f9c6.tar.gz
Fix format strings to unbreak with -DDEBUG option.
Diffstat (limited to 'lib/libc/gmon')
-rw-r--r--lib/libc/gmon/gmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/gmon/gmon.c b/lib/libc/gmon/gmon.c
index da0c179..b2ba497 100644
--- a/lib/libc/gmon/gmon.c
+++ b/lib/libc/gmon/gmon.c
@@ -186,7 +186,7 @@ _mcleanup()
_warn("_mcleanup: gmon.log");
return;
}
- len = sprintf(buf, "[mcleanup1] kcount 0x%x ssiz %d\n",
+ len = sprintf(buf, "[mcleanup1] kcount 0x%p ssiz %lu\n",
p->kcount, p->kcountsize);
_write(log, buf, len);
#endif
@@ -210,7 +210,7 @@ _mcleanup()
toindex = p->tos[toindex].link) {
#ifdef DEBUG
len = sprintf(buf,
- "[mcleanup2] frompc 0x%x selfpc 0x%x count %d\n" ,
+ "[mcleanup2] frompc 0x%lx selfpc 0x%lx count %lu\n" ,
frompc, p->tos[toindex].selfpc,
p->tos[toindex].count);
_write(log, buf, len);
OpenPOWER on IntegriCloud