| 8604 | } |
| 8605 | |
| 8606 | static void |
| 8607 | entityTrackingReportStats(XML_Parser rootParser, ENTITY *entity, |
| 8608 | const char *action, int sourceLine) { |
| 8609 | assert(! rootParser->m_parentParser); |
| 8610 | if (rootParser->m_entity_stats.debugLevel == 0u) |
| 8611 | return; |
| 8612 | |
| 8613 | # if defined(XML_UNICODE) |
| 8614 | const char *const entityName = "[..]"; |
| 8615 | # else |
| 8616 | const char *const entityName = entity->name; |
| 8617 | # endif |
| 8618 | |
| 8619 | fprintf( |
| 8620 | stderr, |
| 8621 | "expat: Entities(%p): Count %9u, depth %2u/%2u %*s%s%s; %s length %d (xmlparse.c:%d)\n", |
| 8622 | (void *)rootParser, rootParser->m_entity_stats.countEverOpened, |
| 8623 | rootParser->m_entity_stats.currentDepth, |
| 8624 | rootParser->m_entity_stats.maximumDepthSeen, |
| 8625 | ((int)rootParser->m_entity_stats.currentDepth - 1) * 2, "", |
| 8626 | entity->is_param ? "%" : "&", entityName, action, entity->textLen, |
| 8627 | sourceLine); |
| 8628 | } |
| 8629 | |
| 8630 | static void |
| 8631 | entityTrackingOnOpen(XML_Parser originParser, ENTITY *entity, int sourceLine) { |
no outgoing calls
no test coverage detected
searching dependent graphs…