[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] [GFS2] glock dump with hex lock name



Trivial change ... Wendy

Print lock name using hex format (instead of decimal) that matches with 
DLM lock dump output. This will make lock trouble shooting task much 
easier, especially if the running system has a large amount of glocks.  

 Signed-off-by: S. Wendy Cheng <wcheng redhat com>

 glock.c |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)

--- linux-msp/fs/gfs2/glock.c	2007-08-20 10:57:45.000000000 -0400
+++ linux-touch/fs/gfs2/glock.c	2007-08-20 17:09:16.000000000 -0400
@@ -1872,7 +1872,7 @@ static int dump_glock(struct glock_iter 
 
 	spin_lock(&gl->gl_spin);
 
-	print_dbg(gi, "Glock 0x%p (%u, %llu)\n", gl, gl->gl_name.ln_type,
+	print_dbg(gi, "Glock 0x%p (%u, %llx)\n", gl, gl->gl_name.ln_type,
 		   (unsigned long long)gl->gl_name.ln_number);
 	print_dbg(gi, "  gl_flags =");
 	for (x = 0; x < 32; x++) {

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]