[PATCH] Print userdata in net g_lock dump

Volker Lendecke Volker.Lendecke at SerNet.DE
Fri Jun 23 07:14:52 UTC 2017


Hi!

Review appreciated!

Thanks, Volker

-- 
SerNet GmbH, Bahnhofsallee 1b, 37081 Göttingen
phone: +49-551-370000-0, fax: +49-551-370000-9
AG Göttingen, HRB 2816, GF: Dr. Johannes Loxen
http://www.sernet.de, mailto:kontakt at sernet.de
-------------- next part --------------
From e1a650d5ae17f5e755d7c51b7d01052e6cf5bda5 Mon Sep 17 00:00:00 2001
From: Volker Lendecke <vl at samba.org>
Date: Thu, 8 Jun 2017 12:51:19 +0200
Subject: [PATCH] net: Dump data for net_g_lock dump

4d404f2 added user-data for a g_lock. Print it in net g_lock dump.

Signed-off-by: Volker Lendecke <vl at samba.org>
---
 source3/utils/net_g_lock.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/source3/utils/net_g_lock.c b/source3/utils/net_g_lock.c
index 7543fd8..0ec6846 100644
--- a/source3/utils/net_g_lock.c
+++ b/source3/utils/net_g_lock.c
@@ -123,6 +123,7 @@ static void net_g_lock_dump_fn(const struct g_lock_rec *locks,
 		d_printf("%s: %s\n", server_id_str_buf(l->pid, &idbuf),
 			 (l->lock_type & 1) ? "WRITE" : "READ");
 	}
+	dump_data_file(data, datalen, true, stdout);
 }
 
 static int net_g_lock_dump(struct net_context *c, int argc, const char **argv)
-- 
2.7.4



More information about the samba-technical mailing list