Skip to content

Commit 3604203

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 e726ae9 commit 3604203

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

src/common/oscap_pcre.c

-5
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ oscap_pcre_t *oscap_pcre_compile(const char *pattern, oscap_pcre_options_t optio
106106
int errno;
107107
PCRE2_SIZE erroffset2;
108108
res->re_ctx = NULL;
109-
dD("pcre2_compile_8: patt=%s", pattern);
110109
res->re = pcre2_compile_8((PCRE2_SPTR)pattern, PCRE2_ZERO_TERMINATED, _oscap_pcre_opts_to_pcre(options), &errno, &erroffset2, NULL);
111110
if (res->re == NULL) {
112111
PCRE2_UCHAR8 errmsg[PCRE2_ERR_BUF_SIZE];
@@ -139,13 +138,9 @@ int oscap_pcre_exec(const oscap_pcre_t *opcre, const char *subject,
139138
// The ovecsize is multiplied by 3 in the code for compatibility with PCRE1
140139
int ovecsize2 = ovecsize/3;
141140
pcre2_match_data_8 *mdata = pcre2_match_data_create_8(ovecsize2, NULL);
142-
dD("pcre2_match_8: subj=%s", subject);
143141
rc = pcre2_match_8(opcre->re, (PCRE2_SPTR8)subject, length, startoffset, _oscap_pcre_opts_to_pcre(options), mdata, opcre->re_ctx);
144-
dD("pcre2_match_8: rc=%d, ", rc);
145142
if (rc > PCRE2_ERROR_NOMATCH) {
146143
PCRE2_SIZE *ovecp = pcre2_get_ovector_pointer_8(mdata);
147-
uint32_t ovecp_count = pcre2_get_ovector_count_8(mdata);
148-
dD("pcre2_match_8: pcre2_get_ovector_count_8=%d", ovecp_count);
149144
for (int i = 0; i < rc; i++) {
150145
if (i < ovecsize2) {
151146
ovector[i*2] = ovecp[i*2];

0 commit comments

Comments
 (0)