[06/10] gssd: Add a few debug statements to help track client_info lifetimes.
diff mbox series

Message ID 20200701182803.14947-7-nazard@nazar.ca
State New
Headers show
Series
  • Misc fixes & cleanups for nfs-utils
Related show

Commit Message

Doug Nazar July 1, 2020, 6:27 p.m. UTC
Signed-off-by: Doug Nazar <nazard@nazar.ca>
---
 utils/gssd/gssd.c | 4 ++++
 1 file changed, 4 insertions(+)

Patch
diff mbox series

diff --git a/utils/gssd/gssd.c b/utils/gssd/gssd.c
index 54d9b5de..7ad38b6f 100644
--- a/utils/gssd/gssd.c
+++ b/utils/gssd/gssd.c
@@ -520,6 +520,8 @@  gssd_get_clnt(struct topdir *tdi, const char *name)
 		if (!strcmp(clp->name, name))
 			return clp;
 
+	printerr(3, "creating client %s/%s\n", tdi->name, name);
+
 	clp = calloc(1, sizeof(struct clnt_info));
 	if (!clp) {
 		printerr(0, "ERROR: can't malloc clnt_info: %s\n",
@@ -561,6 +563,8 @@  gssd_scan_clnt(struct clnt_info *clp)
 	bool gssd_was_closed;
 	bool krb5_was_closed;
 
+	printerr(3, "scanning client %s\n", clp->relpath);
+
 	gssd_was_closed = clp->gssd_fd < 0 ? true : false;
 	krb5_was_closed = clp->krb5_fd < 0 ? true : false;