mirror of
https://gitlab.isc.org/isc-projects/dhcp
synced 2025-08-30 13:57:50 +00:00
Disable some debugging statements
This commit is contained in:
@@ -230,7 +230,6 @@ void enter_lease (lease)
|
|||||||
/* If we don't have a place for this lease yet, save it for
|
/* If we don't have a place for this lease yet, save it for
|
||||||
later. */
|
later. */
|
||||||
if (!comp) {
|
if (!comp) {
|
||||||
printf ("didn't find the lease...\n");
|
|
||||||
comp = new_lease ("enter_lease");
|
comp = new_lease ("enter_lease");
|
||||||
if (!comp) {
|
if (!comp) {
|
||||||
error ("No memory for lease %s\n",
|
error ("No memory for lease %s\n",
|
||||||
@@ -241,7 +240,6 @@ printf ("didn't find the lease...\n");
|
|||||||
lease -> prev = (struct lease *)0;
|
lease -> prev = (struct lease *)0;
|
||||||
dangling_leases = lease;
|
dangling_leases = lease;
|
||||||
} else {
|
} else {
|
||||||
printf ("superseding lease...\n");
|
|
||||||
supersede_lease (comp, lease, 0);
|
supersede_lease (comp, lease, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,7 +85,6 @@ void read_leases (void)
|
|||||||
warn ("Can't open lease database %s: %m", _PATH_DHCPD_DB);
|
warn ("Can't open lease database %s: %m", _PATH_DHCPD_DB);
|
||||||
do {
|
do {
|
||||||
token = next_token (&val, cfile);
|
token = next_token (&val, cfile);
|
||||||
printf ("token = %d\n", token);
|
|
||||||
if (token == EOF)
|
if (token == EOF)
|
||||||
break;
|
break;
|
||||||
if (token != LEASE) {
|
if (token != LEASE) {
|
||||||
@@ -94,10 +93,8 @@ printf ("token = %d\n", token);
|
|||||||
} else {
|
} else {
|
||||||
if (!setjmp (bc)) {
|
if (!setjmp (bc)) {
|
||||||
struct lease *lease;
|
struct lease *lease;
|
||||||
printf ("Parsing a lease...\n");
|
|
||||||
lease = parse_lease_statement (cfile, &bc);
|
lease = parse_lease_statement (cfile, &bc);
|
||||||
enter_lease (lease);
|
enter_lease (lease);
|
||||||
print_lease (lease);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
2
memory.c
2
memory.c
@@ -230,7 +230,6 @@ void enter_lease (lease)
|
|||||||
/* If we don't have a place for this lease yet, save it for
|
/* If we don't have a place for this lease yet, save it for
|
||||||
later. */
|
later. */
|
||||||
if (!comp) {
|
if (!comp) {
|
||||||
printf ("didn't find the lease...\n");
|
|
||||||
comp = new_lease ("enter_lease");
|
comp = new_lease ("enter_lease");
|
||||||
if (!comp) {
|
if (!comp) {
|
||||||
error ("No memory for lease %s\n",
|
error ("No memory for lease %s\n",
|
||||||
@@ -241,7 +240,6 @@ printf ("didn't find the lease...\n");
|
|||||||
lease -> prev = (struct lease *)0;
|
lease -> prev = (struct lease *)0;
|
||||||
dangling_leases = lease;
|
dangling_leases = lease;
|
||||||
} else {
|
} else {
|
||||||
printf ("superseding lease...\n");
|
|
||||||
supersede_lease (comp, lease, 0);
|
supersede_lease (comp, lease, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -85,7 +85,6 @@ void read_leases (void)
|
|||||||
warn ("Can't open lease database %s: %m", _PATH_DHCPD_DB);
|
warn ("Can't open lease database %s: %m", _PATH_DHCPD_DB);
|
||||||
do {
|
do {
|
||||||
token = next_token (&val, cfile);
|
token = next_token (&val, cfile);
|
||||||
printf ("token = %d\n", token);
|
|
||||||
if (token == EOF)
|
if (token == EOF)
|
||||||
break;
|
break;
|
||||||
if (token != LEASE) {
|
if (token != LEASE) {
|
||||||
@@ -94,10 +93,8 @@ printf ("token = %d\n", token);
|
|||||||
} else {
|
} else {
|
||||||
if (!setjmp (bc)) {
|
if (!setjmp (bc)) {
|
||||||
struct lease *lease;
|
struct lease *lease;
|
||||||
printf ("Parsing a lease...\n");
|
|
||||||
lease = parse_lease_statement (cfile, &bc);
|
lease = parse_lease_statement (cfile, &bc);
|
||||||
enter_lease (lease);
|
enter_lease (lease);
|
||||||
print_lease (lease);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user