---
daemon/proto.c | 25 -------------------------
1 file changed, 25 deletions(-)
diff --git a/daemon/proto.c b/daemon/proto.c
index 14f7efe94..670ae2ffb 100644
--- a/daemon/proto.c
+++ b/daemon/proto.c
@@ -96,11 +96,6 @@ main_loop (int _sock)
xdr_u_int (&xdr, &len);
xdr_destroy (&xdr);
- if (verbose)
- fprintf (stderr,
- "guestfsd: main_loop: new request, len 0x%" PRIx32 "\n",
- len);
-
/* Cancellation sent from the library and received after the
* previous request has finished processing. Just ignore it.
*/
@@ -188,26 +183,6 @@ main_loop (int _sock)
/* Now start to process this message. */
dispatch_incoming_message (&xdr);
/* Note that dispatch_incoming_message will also send a reply. */
-
- /* In verbose mode, display the time taken to run each command. */
- if (verbose) {
- struct timeval end_t;
- gettimeofday (&end_t, NULL);
-
- int64_t start_us, end_us, elapsed_us;
- start_us = (int64_t) start_t.tv_sec * 1000000 + start_t.tv_usec;
- end_us = (int64_t) end_t.tv_sec * 1000000 + end_t.tv_usec;
- elapsed_us = end_us - start_us;
-
- fprintf (stderr,
- "guestfsd: main_loop: proc %d (%s) took %d.%02d seconds\n",
- proc_nr,
- proc_nr >= 0 && proc_nr <= GUESTFS_MAX_PROC_NR
- ? function_names[proc_nr] : "UNKNOWN PROCEDURE",
- (int) (elapsed_us / 1000000),
- (int) ((elapsed_us / 10000) % 100));
- }
-
cont:
xdr_destroy (&xdr);
free (buf);
--
2.13.2