lib: Add prefix "expat: " to EXPAT_ENTROPY_DEBUG=1 stderr output

This commit is contained in:
Sebastian Pipping 2021-04-14 17:30:22 +02:00
parent 8af7d22ff0
commit 857fdc4c3b

View file

@ -889,7 +889,7 @@ static unsigned long
ENTROPY_DEBUG(const char *label, unsigned long entropy) {
const char *const EXPAT_ENTROPY_DEBUG = getenv("EXPAT_ENTROPY_DEBUG");
if (EXPAT_ENTROPY_DEBUG && ! strcmp(EXPAT_ENTROPY_DEBUG, "1")) {
fprintf(stderr, "Entropy: %s --> 0x%0*lx (%lu bytes)\n", label,
fprintf(stderr, "expat: Entropy: %s --> 0x%0*lx (%lu bytes)\n", label,
(int)sizeof(entropy) * 2, entropy, (unsigned long)sizeof(entropy));
}
return entropy;