[Cluster-devel] [PATCH] dlm_controld: fix name printing error in logging

2014-04-25 Thread Lidong Zhong
When the length of name_in is NAME_ID_SIZE, the last byte of the name and a whitespace will get lost. Signed-off-by: Lidong Zhong lzh...@suse.com --- dlm_controld/logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dlm_controld/logging.c b/dlm_controld/logging.c

Re: [Cluster-devel] [PATCH] dlm_controld: fix name printing error in logging

2014-04-25 Thread Steven Whitehouse
Hi, On 25/04/14 08:21, Lidong Zhong wrote: When the length of name_in is NAME_ID_SIZE, the last byte of the name and a whitespace will get lost. Signed-off-by: Lidong Zhong lzh...@suse.com --- dlm_controld/logging.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

Re: [Cluster-devel] [PATCH] dlm_controld: fix name printing error in logging

2014-04-25 Thread David Teigland
On Fri, Apr 25, 2014 at 03:21:48PM +0800, Lidong Zhong wrote: When the length of name_in is NAME_ID_SIZE, the last byte of the name and a whitespace will get lost. Thanks, I modified your patch to handle longer names also... commit 4283123f0b13eafc46d825050c5142cf44be79c3 Author: Lidong Zhong