summaryrefslogtreecommitdiff
path: root/sys/src/cmd/mothra
diff options
context:
space:
mode:
authormischief <mischief@offblast.org>2014-02-04 23:34:19 -0800
committermischief <mischief@offblast.org>2014-02-04 23:34:19 -0800
commitffcac11a5a1215a831d7a1421ce808a13d56bfc2 (patch)
treea0e187954978d2070149ed542c3b7a1b51d2c68c /sys/src/cmd/mothra
parent0b1c655160eab79a8066174c113f2025a83dc14c (diff)
libpanel: fix pointer casts and format strings
Diffstat (limited to 'sys/src/cmd/mothra')
-rw-r--r--sys/src/cmd/mothra/libpanel/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/src/cmd/mothra/libpanel/mem.c b/sys/src/cmd/mothra/libpanel/mem.c
index 2733510dc..a497de855 100644
--- a/sys/src/cmd/mothra/libpanel/mem.c
+++ b/sys/src/cmd/mothra/libpanel/mem.c
@@ -25,7 +25,7 @@ void *pl_erealloc(void *v, int n)
return v;
}
void pl_unexpected(Panel *g, char *rou){
- fprint(2, "%s called unexpectedly (%s %lux)\n", rou, g->kind, (ulong)g);
+ fprint(2, "%s called unexpectedly (%s %#p)\n", rou, g->kind, (uintptr)g);
abort();
}
void pl_drawerror(Panel *g){
@@ -62,7 +62,7 @@ int pl_prinormal(Panel *, Point){
Panel *pl_newpanel(Panel *parent, int ndata){
Panel *v;
if(parent && parent->flags&LEAF){
- fprint(2, "newpanel: can't create child of %s %lux\n", parent->kind, (ulong)parent);
+ fprint(2, "newpanel: can't create child of %s %#p\n", parent->kind, (uintptr)parent);
exits("bad newpanel");
}
v=pl_emalloc(sizeof(Panel));