From: Bart House Date: Sat, 2 Sep 2017 18:21:07 +0000 (-0700) Subject: Use %p for formatted output of pointers (needed to support x86 and x64 cleanly). X-Git-Tag: NetHack-3.6.1_RC01~405 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ee61f1b73090d241b3659cdb844a1a3f942642dd;p=nethack Use %p for formatted output of pointers (needed to support x86 and x64 cleanly). --- 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);