rem: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Begin count phase (socket=%d mode=%x count=%lu)\n", soap->socket, soap->mode, (unsigned long)soap->count));
add: DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Begin count phase (socket=%d mode=0x%x count=%lu)\n", soap->socket, soap->mode, (unsigned long)soap->count));
context: soap_begin_count(struct soap *soap){ soap_clr_attr(soap);  soap_set_local_namespaces(soap);#ifndef WITH_LEANER  if ((soap->mode & SOAP_ENC_DIME) || (soap->omode & SOAP_ENC_DIME))    soap->mode = soap->omode | SOAP_IO_LENGTH | SOAP_ENC_DIME;  else#endif  { soap->mode = soap->omode;    if ((soap->mode & SOAP_IO) == SOAP_IO_STORE     || (((soap->mode & SOAP_IO) == SOAP_IO_CHUNK || (soap->mode & SOAP_ENC_XML))#ifndef WITH_LEANER      && !soap->fpreparesend#endif      ))      soap->mode &= ~SOAP_IO_LENGTH;    else      soap->mode |= SOAP_IO_LENGTH;  }#ifdef WITH_ZLIB  if ((soap->mode & SOAP_ENC_ZLIB) && (soap->mode & SOAP_IO) == SOAP_IO_FLUSH)  { if (!(soap->mode & SOAP_ENC_DIME))      soap->mode &= ~SOAP_IO_LENGTH;    if (soap->mode & SOAP_ENC_XML)      soap->mode |= SOAP_IO_BUFFER;    else      soap->mode |= SOAP_IO_STORE;  }#endif  if (!soap->encodingStyle && !(soap->mode & SOAP_XML_GRAPH))    soap->mode |= SOAP_XML_TREE;#ifndef WITH_LEANER  if (soap->mode & SOAP_ENC_MIME)    soap_select_mime_boundary(soap);  soap->dime.list = soap->dime.last;	/* keep track of last DIME attachment */#endif  soap->count = 0;  soap->ns = 0;  soap->null = 0;  soap->position = 0;  soap->mustUnderstand = 0;  soap->encoding = 0;  soap->part = SOAP_BEGIN;  soap->idnum = 0;#ifndef WITH_LEANER  soap->dime.count = 0; /* count # of attachments */  soap->dime.size = 0; /* accumulate total size of attachments */  if (soap->fprepareinit && (soap->mode & SOAP_IO) != SOAP_IO_STORE)    soap->fprepareinit(soap);   #endif  DBGLOG(TEST, SOAP_MESSAGE(fdebug, "Begin count phase (socket=%d mode=%x count=%lu)\n", soap->socket, soap->mode, (unsigned long)soap->count));}