Commit 8f1d5f94 authored by Fred Drake's avatar Fred Drake

Removed debugging prints.

parent 31c47061
...@@ -3416,11 +3416,8 @@ conv_confname(arg, valuep, table, tablesize) ...@@ -3416,11 +3416,8 @@ conv_confname(arg, valuep, table, tablesize)
int hi = tablesize; int hi = tablesize;
int cmp, mid; int cmp, mid;
char *confname = PyString_AS_STRING(arg); char *confname = PyString_AS_STRING(arg);
printf("table: %d entries\n", tablesize);
while (lo < hi) { while (lo < hi) {
mid = (lo + hi) / 2; mid = (lo + hi) / 2;
printf("%d confname='%s'; other='%s';\n",
mid, confname, table[mid].name);
cmp = strcmp(confname, table[mid].name); cmp = strcmp(confname, table[mid].name);
if (cmp < 0) if (cmp < 0)
hi = mid; hi = mid;
...@@ -3620,7 +3617,6 @@ posix_confstr(self, args) ...@@ -3620,7 +3617,6 @@ posix_confstr(self, args)
if (PyArg_ParseTuple(args, "O&:confstr", conv_confstr_confname, &name)) { if (PyArg_ParseTuple(args, "O&:confstr", conv_confstr_confname, &name)) {
int len = confstr(name, buffer, sizeof(buffer)); int len = confstr(name, buffer, sizeof(buffer));
printf("confstr(%d) --> %d, '%s'\n", name, len, buffer);
errno = 0; errno = 0;
if (len == 0) { if (len == 0) {
if (errno != 0) if (errno != 0)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment