summaryrefslogtreecommitdiff
path: root/execute.c
diff options
context:
space:
mode:
authorHiroshi Inoue2017-08-16 02:23:51 +0000
committerHiroshi Inoue2017-08-16 02:23:51 +0000
commit219b94df4ffa983452691e705e7ea19c9094d263 (patch)
tree4f5dd70f94db3debb76aed5480c709628d985094 /execute.c
parent16c6e6197b66b49fe9d44600c17a5cd12a7a1bd2 (diff)
Implement myprintf() which prints logs according to printf format and make logs a little easier to read using the macro MYPRINTF() which calls myprintf().
Diffstat (limited to 'execute.c')
-rw-r--r--execute.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/execute.c b/execute.c
index ad52c9f..67614a7 100644
--- a/execute.c
+++ b/execute.c
@@ -1423,7 +1423,7 @@ MYLOG(1, "i=%d allocated=%d num_p=%d\n", i, apdopts->allocated, num_p);
MYLOG(1, "i=%d", i);
if (apdopts->parameters[i].data_at_exec)
{
-MYLOG(1, " at exec buffer=%p", apdopts->parameters[i].buffer);
+MYPRINTF(1, " at exec buffer=%p", apdopts->parameters[i].buffer);
estmt->data_at_exec--;
estmt->current_exec_param = i;
estmt->put_data = FALSE;
@@ -1435,7 +1435,7 @@ MYLOG(1, " at exec buffer=%p", apdopts->parameters[i].buffer);
SQLULEN offset = apdopts->param_offset_ptr ? *apdopts->param_offset_ptr : 0;
SQLLEN perrow = apdopts->param_bind_type > 0 ? apdopts->param_bind_type : apdopts->parameters[i].buflen;
-MYLOG(1, " offset=" FORMAT_LEN " perrow=" FORMAT_LEN, offset, perrow);
+MYPRINTF(1, " offset=" FORMAT_LEN " perrow=" FORMAT_LEN, offset, perrow);
*prgbValue = apdopts->parameters[i].buffer + offset + estmt->exec_current_row * perrow;
}
else
@@ -1443,7 +1443,7 @@ MYLOG(1, " offset=" FORMAT_LEN " perrow=" FORMAT_LEN, offset, perrow);
}
break;
}
-MYLOG(1, "\n");
+MYPRINTF(1, "\n");
}
retval = SQL_NEED_DATA;