27 lines
938 B
Diff
27 lines
938 B
Diff
From 857fdc4c3bf47eb3fedcd15d3763f62727476df0 Mon Sep 17 00:00:00 2001
|
|
From: Sebastian Pipping <sebastian@pipping.org>
|
|
Date: Wed, 14 Apr 2021 17:30:22 +0200
|
|
Subject: [PATCH] lib: Add prefix "expat: " to EXPAT_ENTROPY_DEBUG=1 stderr
|
|
output
|
|
|
|
---
|
|
lib/xmlparse.c | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lib/xmlparse.c b/lib/xmlparse.c
|
|
index fce7447..641f005 100644
|
|
--- a/lib/xmlparse.c
|
|
+++ b/lib/xmlparse.c
|
|
@@ -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;
|
|
--
|
|
1.8.3.1
|
|
|