Sunil Mushran
2010-Feb-06 01:55 UTC
[Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname
The debug call printing the name of the lock resource was chopping off the last character. This patch fixes the problem. Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com> --- fs/ocfs2/dlm/dlmdebug.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/ocfs2/dlm/dlmdebug.c b/fs/ocfs2/dlm/dlmdebug.c index f18afe9..75efd45 100644 --- a/fs/ocfs2/dlm/dlmdebug.c +++ b/fs/ocfs2/dlm/dlmdebug.c @@ -102,7 +102,7 @@ void __dlm_print_one_lock_resource(struct dlm_lock_resource *res) assert_spin_locked(&res->spinlock); stringify_lockname(res->lockname.name, res->lockname.len, - buf, sizeof(buf) - 1); + buf, sizeof(buf)); printk("lockres: %s, owner=%u, state=%u\n", buf, res->owner, res->state); printk(" last used: %lu, refcnt: %u, on purge list: %s\n", -- 1.6.3.3
Mark Fasheh
2010-Feb-07 23:13 UTC
[Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname
On Fri, Feb 05, 2010 at 05:55:56PM -0800, Sunil Mushran wrote:> The debug call printing the name of the lock resource was chopping > off the last character. This patch fixes the problem. > > Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>Acked-by: Mark Fasheh <mfasheh at suse.com> --Mark -- Mark Fasheh
Joel Becker
2010-Feb-08 21:05 UTC
[Ocfs2-devel] [PATCH] ocfs2/dlm: Fix printing of lockname
On Fri, Feb 05, 2010 at 05:55:56PM -0800, Sunil Mushran wrote:> The debug call printing the name of the lock resource was chopping > off the last character. This patch fixes the problem. > > Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>This patch is now in the 'fixes' branch of ocfs2.git. Joel -- Life's Little Instruction Book #314 "Never underestimate the power of forgiveness." Joel Becker Principal Software Developer Oracle E-mail: joel.becker at oracle.com Phone: (650) 506-8127