From ee61f1b73090d241b3659cdb844a1a3f942642dd Mon Sep 17 00:00:00 2001 From: Bart House Date: Sat, 2 Sep 2017 11:21:07 -0700 Subject: [PATCH] Use %p for formatted output of pointers (needed to support x86 and x64 cleanly). --- src/eat.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/eat.c b/src/eat.c index 552ae147b..9a8e333f5 100644 --- a/src/eat.c +++ b/src/eat.c @@ -1708,8 +1708,7 @@ struct obj *otmp; { const char *old_nomovemsg, *save_nomovemsg; - debugpline2("start_eating: %lx (victual = %lx)", (unsigned long) otmp, - (unsigned long) context.victual.piece); + debugpline2("start_eating: %p (victual = %p)", otmp, context.victual.piece); debugpline1("reqtime = %d", context.victual.reqtime); debugpline1("(original reqtime = %d)", objects[otmp->otyp].oc_delay); debugpline1("nmod = %d", context.victual.nmod); -- 2.40.0