eccstr = apr_palloc(r->pool, module_count* module_count);
data_total_count = chxj_calc_ecc(qrcode, (unsigned char*)decstr, eccstr);
#ifdef QR_CODE_DEBUG
- ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r,
- "chxj_calc_ecc() total_count[%d]", data_total_count);
+ DBG1(r,"chxj_calc_ecc() total_count[%d]", data_total_count);
#endif
/*--------------------------------------------------------------------------*/
/* ºÇŬ¥Þ¥¹¥¯¤ÇºÆÅÙºî¤ê¤Ê¤ª¤· */
/*--------------------------------------------------------------------------*/
#ifdef QR_CODE_DEBUG
- ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r, "selected mask[%d]", min_mask_pattern);
+ DBG1(r, "selected mask[%d]", min_mask_pattern);
#endif
s_init_modules(qrcode, min_mask_pattern, module);
s_map_data(qrcode,
do {
int xx, yy;
int module_count = v_module_count_table[qrcode->version];
- ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r, "loop to [%d]", module_count);
+ DBG1(r,"loop to [%d]", module_count);
for (yy=0; yy<module_count; yy++)
{
char *rows ;
{
rows = apr_pstrcat(r->pool, rows, "[", apr_psprintf(r->pool, "%c", module[yy][xx]), "]", NULL);
}
- ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r, "%d:%s", yy,rows);
+ DBG2(r,"%d:%s", yy,rows);
}
} while(0);
/* DEBUG END */
#endif
#ifdef QR_CODE_DEBUG
- ap_log_rerror(APLOG_MARK,APLOG_DEBUG, 0, r, "end chxj_qr_code()");
+ DBG(r,"end chxj_qr_code()");
#endif
}
}
}
#ifdef QR_CODE_DEBUG
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "qrcode->version[%d]", qrcode->version);
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "qrcode->level[%d]", qrcode->level);
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "qrcode->mode[%d]", qrcode->mode);
- ap_log_rerror(APLOG_MARK, APLOG_DEBUG, 0, r, "qrcode->indata[%s]", qrcode->indata);
+ DBG1(r,"qrcode->version[%d]", qrcode->version);
+ DBG1(r,"qrcode->level[%d]", qrcode->level);
+ DBG1(r,"qrcode->mode[%d]", qrcode->mode);
+ DBG1(r,"qrcode->indata[%s]", qrcode->indata);
#endif
}