diff options
author | Roger Dingledine <arma@torproject.org> | 2003-10-10 01:48:32 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2003-10-10 01:48:32 +0000 |
commit | b9628f266fedca397b33816a31c01d5e4775e19a (patch) | |
tree | 0d34c40f8e174ed456b050450df3d3899e78e87a /src/or/command.c | |
parent | 36fb8e839df7fadc5aac8be71cf026c4966cad76 (diff) | |
download | tor-b9628f266fedca397b33816a31c01d5e4775e19a.tar.gz tor-b9628f266fedca397b33816a31c01d5e4775e19a.zip |
change WARNING to WARN
and fix a few typos
svn:r571
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/or/command.c b/src/or/command.c index 8648fcc6b3..4e090909f6 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -86,7 +86,7 @@ void command_process_cell(cell_t *cell, connection_t *conn) { command_process_destroy_cell); break; default: - log_fn(LOG_WARNING,"Cell of unknown type (%d) received. Dropping.", cell->command); + log_fn(LOG_WARN,"Cell of unknown type (%d) received. Dropping.", cell->command); break; } } @@ -97,14 +97,14 @@ static void command_process_create_cell(cell_t *cell, connection_t *conn) { circ = circuit_get_by_aci_conn(cell->aci, conn); if(circ) { - log_fn(LOG_WARNING,"received CREATE cell (aci %d) for known circ. Dropping.", cell->aci); + log_fn(LOG_WARN,"received CREATE cell (aci %d) for known circ. Dropping.", cell->aci); return; } circ = circuit_new(cell->aci, conn); circ->state = CIRCUIT_STATE_ONIONSKIN_PENDING; if(cell->length != DH_ONIONSKIN_LEN) { - log_fn(LOG_WARNING,"Bad cell length %d. Dropping.", cell->length); + log_fn(LOG_WARN,"Bad cell length %d. Dropping.", cell->length); circuit_close(circ); return; } @@ -113,7 +113,7 @@ static void command_process_create_cell(cell_t *cell, connection_t *conn) { /* hand it off to the cpuworkers, and then return */ if(assign_to_cpuworker(NULL, CPUWORKER_TASK_ONION, circ) < 0) { - log_fn(LOG_WARNING,"Failed to hand off onionskin. Closing."); + log_fn(LOG_WARN,"Failed to hand off onionskin. Closing."); circuit_close(circ); return; } @@ -131,7 +131,7 @@ static void command_process_created_cell(cell_t *cell, connection_t *conn) { } if(circ->n_aci != cell->aci) { - log_fn(LOG_WARNING,"got created cell from OPward? Closing."); + log_fn(LOG_WARN,"got created cell from OPward? Closing."); circuit_close(circ); return; } @@ -140,13 +140,13 @@ static void command_process_created_cell(cell_t *cell, connection_t *conn) { if(circ->cpath) { /* we're the OP. Handshake this. */ log_fn(LOG_DEBUG,"at OP. Finishing handshake."); if(circuit_finish_handshake(circ, cell->payload) < 0) { - log_fn(LOG_WARNING,"circuit_finish_handshake failed."); + log_fn(LOG_WARN,"circuit_finish_handshake failed."); circuit_close(circ); return; } log_fn(LOG_DEBUG,"Moving to next skin."); if(circuit_send_next_onion_skin(circ) < 0) { - log_fn(LOG_WARNING,"circuit_send_next_onion_skin failed."); + log_fn(LOG_WARN,"circuit_send_next_onion_skin failed."); circuit_close(circ); return; } @@ -168,7 +168,7 @@ static void command_process_relay_cell(cell_t *cell, connection_t *conn) { } if(circ->state == CIRCUIT_STATE_ONIONSKIN_PENDING) { - log_fn(LOG_WARNING,"circuit in create_wait. Closing."); + log_fn(LOG_WARN,"circuit in create_wait. Closing."); circuit_close(circ); return; } @@ -176,14 +176,14 @@ static void command_process_relay_cell(cell_t *cell, connection_t *conn) { if(cell->aci == circ->p_aci) { /* it's an outgoing cell */ cell->aci = circ->n_aci; /* switch it */ if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_OUT, conn->cpath_layer) < 0) { - log_fn(LOG_WARNING,"circuit_deliver_relay_cell (forward) failed. Closing."); + log_fn(LOG_WARN,"circuit_deliver_relay_cell (forward) failed. Closing."); circuit_close(circ); return; } } else { /* it's an ingoing cell */ cell->aci = circ->p_aci; /* switch it */ if(circuit_deliver_relay_cell(cell, circ, CELL_DIRECTION_IN, NULL) < 0) { - log_fn(LOG_WARNING,"circuit_deliver_relay_cell (backward) failed. Closing."); + log_fn(LOG_WARN,"circuit_deliver_relay_cell (backward) failed. Closing."); circuit_close(circ); return; } |