Skip to content

Commit bbdd986

Browse files
committed
Remove extra debugging logs in oscap_pcre.c
These log records were introduced in anticipation of the PCRE -> PCRE2 migration problems. We can get rid of them now.
1 parent 7c1a5f8 commit bbdd986

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/common/oscap_pcre.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,6 @@ oscap_pcre_t *oscap_pcre_compile(const char *pattern, oscap_pcre_options_t optio
142142
int errno;
143143
PCRE2_SIZE erroffset2;
144144
res->re_ctx = NULL;
145-
dD("pcre2_compile_8: patt=%s", pattern);
146145
res->re = pcre2_compile_8((PCRE2_SPTR)pattern, PCRE2_ZERO_TERMINATED, _oscap_pcre_opts_to_pcre(options), &errno, &erroffset2, NULL);
147146
if (res->re == NULL) {
148147
PCRE2_UCHAR8 errmsg[PCRE2_ERR_BUF_SIZE];
@@ -206,13 +205,9 @@ int oscap_pcre_exec(const oscap_pcre_t *opcre, const char *subject,
206205
// The ovecsize is multiplied by 3 in the code for compatibility with PCRE1
207206
int ovecsize2 = ovecsize/3;
208207
pcre2_match_data_8 *mdata = pcre2_match_data_create_8(ovecsize2, NULL);
209-
dD("pcre2_match_8: subj=%s", subject);
210208
rc = pcre2_match_8(opcre->re, (PCRE2_SPTR8)subject, length, startoffset, _oscap_pcre_opts_to_pcre(options), mdata, opcre->re_ctx);
211-
dD("pcre2_match_8: rc=%d, ", rc);
212209
if (rc > PCRE2_ERROR_NOMATCH) {
213210
PCRE2_SIZE *ovecp = pcre2_get_ovector_pointer_8(mdata);
214-
uint32_t ovecp_count = pcre2_get_ovector_count_8(mdata);
215-
dD("pcre2_match_8: pcre2_get_ovector_count_8=%d", ovecp_count);
216211
for (int i = 0; i < rc; i++) {
217212
if (i < ovecsize2) {
218213
ovector[i*2] = ovecp[i*2];

0 commit comments

Comments
 (0)