]> granicus.if.org Git - nethack/commitdiff
Use %p for formatted output of pointers (needed to support x86 and x64 cleanly).
authorBart House <bart@barthouse.com>
Sat, 2 Sep 2017 18:21:07 +0000 (11:21 -0700)
committerPasi Kallinen <paxed@alt.org>
Mon, 4 Sep 2017 09:41:53 +0000 (12:41 +0300)
src/eat.c

index 552ae147b0cd2aaaaa10a2c2f420b2f9f210d001..9a8e333f5f97f30a71f4a48609a31fbc58e67890 100644 (file)
--- 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);