From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Sat, 6 May 2017 10:38:18 +0200 Subject: [Cluster-devel] [PATCH 02/10] dlm: Add spaces for better code readability In-Reply-To: <4bd895d7-9448-928d-1e4c-42326ce20607@users.sourceforge.net> References: <4bd895d7-9448-928d-1e4c-42326ce20607@users.sourceforge.net> Message-ID: List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit From: Markus Elfring Date: Sat, 6 May 2017 08:22:35 +0200 The script "checkpatch.pl" pointed information out like the following. CHECK: spaces preferred around that '+' (ctx:VxV) Thus fix the affected source code places. Signed-off-by: Markus Elfring --- fs/dlm/debug_fs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index 464218c6b502..551e0f8dbe0d 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -741,7 +741,7 @@ void dlm_delete_debug_file(struct dlm_ls *ls) int dlm_create_debug_file(struct dlm_ls *ls) { - char name[DLM_LOCKSPACE_LEN+8]; + char name[DLM_LOCKSPACE_LEN + 8]; /* format 1 */ @@ -756,7 +756,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 2 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_locks", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_locks", ls->ls_name); ls->ls_debug_locks_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -769,7 +769,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 3 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_all", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_all", ls->ls_name); ls->ls_debug_all_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -782,7 +782,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 4 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_toss", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_toss", ls->ls_name); ls->ls_debug_toss_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -793,7 +793,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) goto fail; memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_waiters", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_waiters", ls->ls_name); ls->ls_debug_waiters_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, -- 2.12.2 From mboxrd@z Thu Jan 1 00:00:00 1970 From: SF Markus Elfring Date: Sat, 06 May 2017 08:38:18 +0000 Subject: [PATCH 02/10] dlm: Add spaces for better code readability Message-Id: List-Id: References: <4bd895d7-9448-928d-1e4c-42326ce20607@users.sourceforge.net> In-Reply-To: <4bd895d7-9448-928d-1e4c-42326ce20607@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: cluster-devel@redhat.com, Christine Caulfield , David Teigland Cc: LKML , kernel-janitors@vger.kernel.org From: Markus Elfring Date: Sat, 6 May 2017 08:22:35 +0200 The script "checkpatch.pl" pointed information out like the following. CHECK: spaces preferred around that '+' (ctx:VxV) Thus fix the affected source code places. Signed-off-by: Markus Elfring --- fs/dlm/debug_fs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index 464218c6b502..551e0f8dbe0d 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -741,7 +741,7 @@ void dlm_delete_debug_file(struct dlm_ls *ls) int dlm_create_debug_file(struct dlm_ls *ls) { - char name[DLM_LOCKSPACE_LEN+8]; + char name[DLM_LOCKSPACE_LEN + 8]; /* format 1 */ @@ -756,7 +756,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 2 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_locks", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_locks", ls->ls_name); ls->ls_debug_locks_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -769,7 +769,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 3 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_all", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_all", ls->ls_name); ls->ls_debug_all_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -782,7 +782,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 4 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_toss", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_toss", ls->ls_name); ls->ls_debug_toss_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -793,7 +793,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) goto fail; memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_waiters", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_waiters", ls->ls_name); ls->ls_debug_waiters_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, -- 2.12.2 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754956AbdEFIic (ORCPT ); Sat, 6 May 2017 04:38:32 -0400 Received: from mout.web.de ([212.227.17.11]:55680 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752158AbdEFIiY (ORCPT ); Sat, 6 May 2017 04:38:24 -0400 Subject: [PATCH 02/10] dlm: Add spaces for better code readability From: SF Markus Elfring To: cluster-devel@redhat.com, Christine Caulfield , David Teigland Cc: LKML , kernel-janitors@vger.kernel.org References: <4bd895d7-9448-928d-1e4c-42326ce20607@users.sourceforge.net> Message-ID: Date: Sat, 6 May 2017 10:38:18 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.0.1 MIME-Version: 1.0 In-Reply-To: <4bd895d7-9448-928d-1e4c-42326ce20607@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:AKjJqVR4Er+WD16DQ1UdEYpATi97rlJ05UB/oE9k20EVtDT//po 9uufgkeTd+30OlyoFTvsrw+49EQCiQcUJY80tFOCfhCB8rNoxkNec+YPhscTaT2FQB6ScXg HNGtLvNnV0lBeNUjR+rEMYkdRsrfbbDWR+L/aS1GXhZY+Ph133Nvqx/Jv8TEOyw/DbD5c9n KEwlPCc3yaq3f8joFUj1w== X-UI-Out-Filterresults: notjunk:1;V01:K0:/GAlf6kOvts=:NJ++/gDc8ljHlhybYUMD6x 3cF2S+hBr3WpeX7jBjj9pHhAP1Ohs++aDK0WLq1WHlpI82QQJuewyfKO+DTYDJvmyXvSPaHmy 4RLlPY4bCgL1DwH1J0wbU5RaySvqAevJ20SbJ1GM7flehuCNc5wOMtanrK/Mnjt+cknsP5Usl THFXhuY5tPZDom2zAEISu1qReadwiN8ts6WUHwMK7afpo6i6Qg/W9+EfUH3zHPcR3NszwUm7Q r9fAVjyX6v6cSfm9V5tBf3cm3eZU2qVHjsyUG9AnOI8Nkaz9pQx2PtP5RgAnfKbV0L7v6UnLi 956CFxIeV6qxLD3/+pp0LQLNtdiwAzuvwu+EFsVHDgQvZD8Wa+Cw1epP70cccpqvqyqhIJehP hLOnuLPmgduYqo4LfPU0NHVHzdyTuv6h6ogLiUv1Dz55MbaXGugMOlJFxWazHO+Khgci0j6mk ZMTOyQ5YqjW3owdIT+fUKnbZNFjPmU8lw280xpypvlvOZtOhZ5zaDvQ1D4veQ0HkO35cHoFqp 65YoySDjGcoMQXqq08PbYrXByr59bd1TyN5k9CtyN6jr7aLQzWyKYEh4Q1KzbnEvABxSZHDyy woXrBqXE9OKedxkVycrl6IaoINLMqPg+zKemKH2HxNBCmFk8uyKMS0XLGueGoCkUXu32oyY/V t8OB8zxStkZIU6m4Zc6Pns0L6JAkH5AkWiSd9FJlqH7w2y1IujKYcV7UjYbTVw+G3TMxly8Km 43hgIZZLYiFUhcBDJZWWQrOWm0INA/9RbAXKaHyTe4xwcaAtQfhTKKLhMGZ5wRbNw3CcAPg4v NRie2zX Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring Date: Sat, 6 May 2017 08:22:35 +0200 The script "checkpatch.pl" pointed information out like the following. CHECK: spaces preferred around that '+' (ctx:VxV) Thus fix the affected source code places. Signed-off-by: Markus Elfring --- fs/dlm/debug_fs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/dlm/debug_fs.c b/fs/dlm/debug_fs.c index 464218c6b502..551e0f8dbe0d 100644 --- a/fs/dlm/debug_fs.c +++ b/fs/dlm/debug_fs.c @@ -741,7 +741,7 @@ void dlm_delete_debug_file(struct dlm_ls *ls) int dlm_create_debug_file(struct dlm_ls *ls) { - char name[DLM_LOCKSPACE_LEN+8]; + char name[DLM_LOCKSPACE_LEN + 8]; /* format 1 */ @@ -756,7 +756,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 2 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_locks", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_locks", ls->ls_name); ls->ls_debug_locks_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -769,7 +769,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 3 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_all", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_all", ls->ls_name); ls->ls_debug_all_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -782,7 +782,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) /* format 4 */ memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_toss", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_toss", ls->ls_name); ls->ls_debug_toss_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, @@ -793,7 +793,7 @@ int dlm_create_debug_file(struct dlm_ls *ls) goto fail; memset(name, 0, sizeof(name)); - snprintf(name, DLM_LOCKSPACE_LEN+8, "%s_waiters", ls->ls_name); + snprintf(name, DLM_LOCKSPACE_LEN + 8, "%s_waiters", ls->ls_name); ls->ls_debug_waiters_dentry = debugfs_create_file(name, S_IFREG | S_IRUGO, -- 2.12.2