diff options
| author | Fredi Raspall <fredi@voltanet.io> | 2018-05-08 10:13:20 +0200 |
|---|---|---|
| committer | Fredi Raspall <fredi@voltanet.io> | 2018-05-08 18:37:05 +0200 |
| commit | 0313523d77da02ecea1bdc0722c69a3c42adc1a5 (patch) | |
| tree | 660b5d0895f767f7b1e7904b08668f28ae00a6d4 /zebra/zapi_msg.c | |
| parent | aec865e4164525cdb43daff79ad79932829ee56e (diff) | |
lib, zebra: fix formatting and style
Signed-off-by: Fredi Raspall <fredi@voltanet.io>
Diffstat (limited to 'zebra/zapi_msg.c')
| -rw-r--r-- | zebra/zapi_msg.c | 25 |
1 files changed, 15 insertions, 10 deletions
diff --git a/zebra/zapi_msg.c b/zebra/zapi_msg.c index 2bd678d629..e03caa61b7 100644 --- a/zebra/zapi_msg.c +++ b/zebra/zapi_msg.c @@ -2413,14 +2413,15 @@ static int msg_client_id_mismatch(const char *op, struct zserv *client, { if (proto != client->proto) { zlog_err("%s: msg vs client proto mismatch, client=%u msg=%u", - op, client->proto, proto); + op, client->proto, proto); /* TODO: fail when BGP sets proto and instance */ /* return 1; */ } if (instance != client->instance) { - zlog_err("%s: msg vs client instance mismatch, client=%u msg=%u", - op, client->instance, instance); + zlog_err( + "%s: msg vs client instance mismatch, client=%u msg=%u", + op, client->instance, instance); /* TODO: fail when BGP sets proto and instance */ /* return 1; */ } @@ -2453,11 +2454,14 @@ static void zread_get_label_chunk(struct zserv *client, struct stream *msg, lmc = assign_label_chunk(client->proto, client->instance, keep, size); if (!lmc) - zlog_err("Unable to assign Label Chunk of size %u to %s instance %u", - size, zebra_route_string(client->proto), client->instance); + zlog_err( + "Unable to assign Label Chunk of size %u to %s instance %u", + size, zebra_route_string(client->proto), + client->instance); else - zlog_debug("Assigned Label Chunk %u - %u to %s instance %u", lmc->start, - lmc->end, zebra_route_string(client->proto), client->instance); + zlog_debug("Assigned Label Chunk %u - %u to %s instance %u", + lmc->start, lmc->end, + zebra_route_string(client->proto), client->instance); /* send response back */ zsend_assign_label_chunk_response(client, vrf_id, lmc); @@ -2482,7 +2486,8 @@ static void zread_release_label_chunk(struct zserv *client, struct stream *msg) STREAM_GETL(s, end); /* detect client vs message (proto,instance) mismatch */ - if (msg_client_id_mismatch("Release-label-chunk", client, proto, instance)) + if (msg_client_id_mismatch("Release-label-chunk", client, proto, + instance)) return; release_label_chunk(client->proto, client->instance, start, end); @@ -2498,8 +2503,8 @@ static void zread_label_manager_request(ZAPI_HANDLER_ARGS) /* external label manager */ if (lm_is_external) - zread_relay_label_manager_request(hdr->command, client, - msg, zvrf_id(zvrf)); + zread_relay_label_manager_request(hdr->command, client, msg, + zvrf_id(zvrf)); /* this is a label manager */ else { if (hdr->command == ZEBRA_LABEL_MANAGER_CONNECT) |
