[PATCH] ctdb: add space to a debug message

Jeremy Allison jra at samba.org
Tue May 31 22:51:03 UTC 2016


On Wed, Jun 01, 2016 at 12:27:12AM +0200, Michael Adam wrote:
> Review/push appreciated.
> 
> Thanks - Michael

LGTM. Pushed.

> From 54cc30846ab532c856d343398d54ccc23f970393 Mon Sep 17 00:00:00 2001
> From: Michael Adam <obnox at samba.org>
> Date: Thu, 26 May 2016 13:40:38 +0200
> Subject: [PATCH] ctdb:tcp: add missing spaces in debug message in
>  ctdb_tcp_node_connect()
> 
> Signed-off-by: Michael Adam <obnox at samba.org>
> ---
>  ctdb/tcp/tcp_connect.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/ctdb/tcp/tcp_connect.c b/ctdb/tcp/tcp_connect.c
> index fbb17c8..a56320d 100644
> --- a/ctdb/tcp/tcp_connect.c
> +++ b/ctdb/tcp/tcp_connect.c
> @@ -145,7 +145,7 @@ void ctdb_tcp_node_connect(struct tevent_context *ev, struct tevent_timer *te,
>  
>  	tnode->fd = socket(sock_out.sa.sa_family, SOCK_STREAM, IPPROTO_TCP);
>  	if (tnode->fd == -1) {
> -		DEBUG(DEBUG_ERR, (__location__ "Failed to create socket\n"));
> +		DEBUG(DEBUG_ERR, (__location__ " Failed to create socket\n"));
>  		return;
>  	}
>  	set_nonblocking(tnode->fd);
> @@ -185,7 +185,7 @@ void ctdb_tcp_node_connect(struct tevent_context *ev, struct tevent_timer *te,
>  	}
>  
>  	if (bind(tnode->fd, (struct sockaddr *)&sock_in, sockin_size) == -1) {
> -		DEBUG(DEBUG_ERR, (__location__ "Failed to bind socket %s(%d)\n",
> +		DEBUG(DEBUG_ERR, (__location__ " Failed to bind socket %s(%d)\n",
>  				  strerror(errno), errno));
>  		close(tnode->fd);
>  		return;
> -- 
> 2.5.5
> 






More information about the samba-technical mailing list