Beispiel #1
0
static void PrintMMessageToStreamAux(const MMessage * msg, FILE * file, int indent)
{
   /* Make a pretty type code string */
   char buf[5];
   MakePrettyTypeCodeString(msg->what, buf);

   fprintf(file, "MMessage:  msg=%p, what='%s' ("INT32_FORMAT_SPEC"), entryCount="INT32_FORMAT_SPEC", flatSize="UINT32_FORMAT_SPEC"\n", msg, buf, msg->what, msg->numFields, MMGetFlattenedSize(msg));

   indent += 2;
   {
      MMessageField * f = msg->firstField;
      while(f)
      {
         PrintMMessageFieldToStream(f, file, indent);
         f = f->nextField;
      }
   }
}
Beispiel #2
0
static void PrintMMessageToStreamAux(const MMessage * msg, int indent)
{
   /* Make a pretty type code string */
   char buf[5];
   MakePrettyTypeCodeString(msg->what, buf);

   dlog(DEBUG1, "MMessage:  msg=%p, what='%s' (%li/0x%lx), entryCount=%li, flatSize=%lu", msg, buf, msg->what, msg->what, msg->numFields, MMGetFlattenedSize(msg));

   indent += 2;
   {
      MMessageField * f = msg->firstField;
      while(f)
      {
         PrintMMessageFieldToStream(f, indent);
         f = f->nextField;
      }
   }
}