diff options
author | Sunil Mushran <sunil.mushran@oracle.com> | 2010-02-05 17:55:56 -0800 |
---|---|---|
committer | Joel Becker <joel.becker@oracle.com> | 2010-02-08 13:01:31 -0800 |
commit | 86a06abab0ffbb9d8ce2b7f6b6652412ce2d2c36 (patch) | |
tree | b97ff4a3bc9b9010cb4dbacc1b557c2e2e5935e1 /fs/ocfs2 | |
parent | bd6b0bf87d8cf3d9cfeadeb12dbf5449e3e50765 (diff) | |
download | linux-3.10-86a06abab0ffbb9d8ce2b7f6b6652412ce2d2c36.tar.gz linux-3.10-86a06abab0ffbb9d8ce2b7f6b6652412ce2d2c36.tar.bz2 linux-3.10-86a06abab0ffbb9d8ce2b7f6b6652412ce2d2c36.zip |
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@oracle.com>
Acked-by: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Joel Becker <joel.becker@oracle.com>
Diffstat (limited to 'fs/ocfs2')
-rw-r--r-- | 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 42b0bad7a61..0cd24cf5439 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", |