chiark / gitweb /
safety: movpos: better debug output for "actual" (no longer show unkmap bitmask in...
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 19 Feb 2011 12:15:03 +0000 (12:15 +0000)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Sat, 19 Feb 2011 12:15:03 +0000 (12:15 +0000)
hostside/movpos.c

index a31e507b8f806cb84f57655898ecbcda3734f0be..4222103c3b3c3b431b3752fbf128b706ff9bedb5 100644 (file)
@@ -829,8 +829,17 @@ static ErrorCode indep_prepare(Segment *move, MovPosComb target,
       startpointpos= 0;
       startpointunk= unkallfeatbits(move->i->n_movfeats);
     }
-    DPRINTF2(" actual <-%s&%"PRunkx, movpos_pname(move,startpointpos),
-            startpointunk);
+    if (DP) {
+      DPRINTF2(" actual <-%s/", move->i->pname);
+      for (feat=0; feat<movei->n_movfeats; feat++) {
+       const MovFeatInfo *feati= &movei->movfeats[feat];
+       if (startpointunk & unkfeatbit(feat))
+         DPRINTF2("%s?", feati->pname);
+       else
+         DPRINTF2("%s%d", feati->pname,
+                  startpointpos / feati->weight % feati->posns);
+      }
+    }
   }
 
   n_meths= 0;