traffic-selector: Don't end printf'ed list of traffic selectors with a space
This commit is contained in:
@@ -110,7 +110,7 @@ METHOD(listener_t, alert, bool,
|
||||
list = va_arg(args, linked_list_t*);
|
||||
list2 = va_arg(args, linked_list_t*);
|
||||
snprintf(msg.str, sizeof(msg.str), "the received traffic selectors "
|
||||
"did not match: %#R=== %#R", list, list2);
|
||||
"did not match: %#R === %#R", list, list2);
|
||||
break;
|
||||
case ALERT_INSTALL_CHILD_SA_FAILED:
|
||||
msg.type = htonl(ERROR_NOTIFY_INSTALL_CHILD_SA_FAILED);
|
||||
|
||||
@@ -126,7 +126,7 @@ METHOD(listener_t, child_keys, bool,
|
||||
ike_sa->get_my_host(ike_sa), child_sa->get_spi(child_sa, TRUE));
|
||||
seg_o = this->kernel->get_segment_spi(this->kernel,
|
||||
ike_sa->get_other_host(ike_sa), child_sa->get_spi(child_sa, FALSE));
|
||||
DBG1(DBG_CFG, "handling HA CHILD_SA %s{%d} %#R=== %#R "
|
||||
DBG1(DBG_CFG, "handling HA CHILD_SA %s{%d} %#R === %#R "
|
||||
"(segment in: %d%s, out: %d%s)", child_sa->get_name(child_sa),
|
||||
child_sa->get_unique_id(child_sa), local_ts, remote_ts,
|
||||
seg_i, this->segments->is_active(this->segments, seg_i) ? "*" : "",
|
||||
|
||||
@@ -848,7 +848,7 @@ static void process_child_add(private_ha_dispatcher_t *this,
|
||||
seg_o = this->kernel->get_segment_spi(this->kernel,
|
||||
ike_sa->get_other_host(ike_sa), outbound_spi);
|
||||
|
||||
DBG1(DBG_CFG, "installed HA CHILD_SA %s{%d} %#R=== %#R "
|
||||
DBG1(DBG_CFG, "installed HA CHILD_SA %s{%d} %#R === %#R "
|
||||
"(segment in: %d%s, out: %d%s)", child_sa->get_name(child_sa),
|
||||
child_sa->get_unique_id(child_sa), local_ts, remote_ts,
|
||||
seg_i, this->segments->is_active(this->segments, seg_i) ? "*" : "",
|
||||
|
||||
@@ -334,7 +334,7 @@ static void log_child_sa(FILE *out, child_sa_t *child_sa, bool all)
|
||||
child_sa->create_ts_enumerator(child_sa, TRUE));
|
||||
other_ts = linked_list_create_from_enumerator(
|
||||
child_sa->create_ts_enumerator(child_sa, FALSE));
|
||||
fprintf(out, "\n%12s{%d}: %#R=== %#R\n",
|
||||
fprintf(out, "\n%12s{%d}: %#R === %#R\n",
|
||||
child_sa->get_name(child_sa), child_sa->get_unique_id(child_sa),
|
||||
my_ts, other_ts);
|
||||
my_ts->destroy(my_ts);
|
||||
@@ -586,7 +586,7 @@ METHOD(stroke_list_t, status, void,
|
||||
{
|
||||
my_ts = child_cfg->get_traffic_selectors(child_cfg, TRUE, NULL, NULL);
|
||||
other_ts = child_cfg->get_traffic_selectors(child_cfg, FALSE, NULL, NULL);
|
||||
fprintf(out, "%12s: child: %#R=== %#R%N",
|
||||
fprintf(out, "%12s: child: %#R === %#R %N",
|
||||
child_cfg->get_name(child_cfg), my_ts, other_ts,
|
||||
ipsec_mode_names, child_cfg->get_mode(child_cfg));
|
||||
my_ts->destroy_offset(my_ts, offsetof(traffic_selector_t, destroy));
|
||||
@@ -620,7 +620,7 @@ METHOD(stroke_list_t, status, void,
|
||||
}
|
||||
my_ts = child_cfg->get_traffic_selectors(child_cfg, TRUE, NULL, NULL);
|
||||
other_ts = child_cfg->get_traffic_selectors(child_cfg, FALSE, NULL, NULL);
|
||||
fprintf(out, "%12s: %#R=== %#R%N\n",
|
||||
fprintf(out, "%12s: %#R === %#R %N\n",
|
||||
child_cfg->get_name(child_cfg), my_ts, other_ts,
|
||||
ipsec_mode_names, child_cfg->get_mode(child_cfg));
|
||||
my_ts->destroy_offset(my_ts, offsetof(traffic_selector_t, destroy));
|
||||
|
||||
Reference in New Issue
Block a user