Skip to contentSkip to conversation

nfs-utils: remove leftover debugging messages

PATCH In review Holger Hoffstätte 2 participants 2 messages Oct 29, 2020 – Oct 31, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nfs-utils: remove leftover debugging messages

After updating to nfs-utils-2.5.2 I noticed extra output on the console when exporting mounts. Apparently commit 482e72ba04 forgot to remove some debugging messages and accidentally committed them.

---
 support/misc/nfsd_path.c  | 2 +-
 utils/exportfs/exportfs.c | 3 ---
 2 files changed, 1 insertion(+), 4 deletions(-)
support/misc/nfsd_path.c +1 -1
index 8efbfcd3..65e53c13 100644
@@ -110,7 +110,7 @@ nfsd_setup_workqueue(void)
 
 	if (!rootdir)
 		return;
-printf("rootdir %s\n", rootdir);
+
 	nfsd_wq = xthread_workqueue_alloc();
 	if (!nfsd_wq)
 		return;
utils/exportfs/exportfs.c +0 -3
index 9d5e575b..cde5e517 100644
@@ -176,10 +176,8 @@ main(int argc, char **argv)
 		xlog(L_ERROR, "-r and -u are incompatible");
 		return 1;
 	}
-printf("point 1\n");
 	if (!setup_state_path_names(progname, ETAB, ETABTMP, ETABLCK, &etab))
 		return 1;
-printf("point 2\n");
 	if (optind == argc && ! f_all) {
 		if (force_flush) {
 			cache_flush(1);
@@ -193,7 +191,6 @@ printf("point 2\n");
 			return 0;
 		}
 	}
-printf("point 3\n");
 
 	/*
 	 * Serialize things as best we can
Signature · 1 line
2.29.1
#1 lore raw
Quoted 6 lines · Holger Hoffstätte

After updating to nfs-utils-2.5.2 I noticed extra output on the console when exporting mounts. Apparently commit 482e72ba04 forgot to remove some debugging messages and accidentally committed them.

WOW! I did skip a beat on this one! Thanks for the clean up!!!

Committed!

steved.

Quoted 41 lines

---
 support/misc/nfsd_path.c  | 2 +-
 utils/exportfs/exportfs.c | 3 ---

 2 files changed, 1 insertion(+), 4 deletions(-)
support/misc/nfsd_path.c +0 -0
index 8efbfcd3..65e53c13 100644
@@ -110,7 +110,7 @@ nfsd_setup_workqueue(void)


     if (!rootdir)
         return;

support/misc/nfsd_path.c +1 -1
-printf("rootdir %s\n", rootdir);
+

     nfsd_wq = xthread_workqueue_alloc();
     if (!nfsd_wq)
         return;

utils/exportfs/exportfs.c +0 -3
index 9d5e575b..cde5e517 100644
@@ -176,10 +176,8 @@ main(int argc, char **argv)
          xlog(L_ERROR, "-r and -u are incompatible");
          return 1;
      }
-printf("point 1\n");
      if (!setup_state_path_names(progname, ETAB, ETABTMP, ETABLCK, &etab))
          return 1;
-printf("point 2\n");
      if (optind == argc && ! f_all) {
          if (force_flush) {
              cache_flush(1);
@@ -193,7 +191,6 @@ printf("point 2\n");
              return 0;
          }
      }
-printf("point 3\n");


     /*
      * Serialize things as best we can