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:
parent
1358b87447
commit
d843c75d7e
@ -230,7 +230,6 @@ void enter_lease (lease)
|
||||
/* If we don't have a place for this lease yet, save it for
|
||||
later. */
|
||||
if (!comp) {
|
||||
printf ("didn't find the lease...\n");
|
||||
comp = new_lease ("enter_lease");
|
||||
if (!comp) {
|
||||
error ("No memory for lease %s\n",
|
||||
@ -241,7 +240,6 @@ printf ("didn't find the lease...\n");
|
||||
lease -> prev = (struct lease *)0;
|
||||
dangling_leases = lease;
|
||||
} else {
|
||||
printf ("superseding lease...\n");
|
||||
supersede_lease (comp, lease, 0);
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,6 @@ void read_leases (void)
|
||||
warn ("Can't open lease database %s: %m", _PATH_DHCPD_DB);
|
||||
do {
|
||||
token = next_token (&val, cfile);
|
||||
printf ("token = %d\n", token);
|
||||
if (token == EOF)
|
||||
break;
|
||||
if (token != LEASE) {
|
||||
@ -94,10 +93,8 @@ printf ("token = %d\n", token);
|
||||
} else {
|
||||
if (!setjmp (bc)) {
|
||||
struct lease *lease;
|
||||
printf ("Parsing a lease...\n");
|
||||
lease = parse_lease_statement (cfile, &bc);
|
||||
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
|
||||
later. */
|
||||
if (!comp) {
|
||||
printf ("didn't find the lease...\n");
|
||||
comp = new_lease ("enter_lease");
|
||||
if (!comp) {
|
||||
error ("No memory for lease %s\n",
|
||||
@ -241,7 +240,6 @@ printf ("didn't find the lease...\n");
|
||||
lease -> prev = (struct lease *)0;
|
||||
dangling_leases = lease;
|
||||
} else {
|
||||
printf ("superseding lease...\n");
|
||||
supersede_lease (comp, lease, 0);
|
||||
}
|
||||
}
|
||||
|
@ -85,7 +85,6 @@ void read_leases (void)
|
||||
warn ("Can't open lease database %s: %m", _PATH_DHCPD_DB);
|
||||
do {
|
||||
token = next_token (&val, cfile);
|
||||
printf ("token = %d\n", token);
|
||||
if (token == EOF)
|
||||
break;
|
||||
if (token != LEASE) {
|
||||
@ -94,10 +93,8 @@ printf ("token = %d\n", token);
|
||||
} else {
|
||||
if (!setjmp (bc)) {
|
||||
struct lease *lease;
|
||||
printf ("Parsing a lease...\n");
|
||||
lease = parse_lease_statement (cfile, &bc);
|
||||
enter_lease (lease);
|
||||
print_lease (lease);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user