commit-hurd
[Top][All Lists]
Advanced

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

[hurd] 07/12: libmachdev: drop debugging printf


From: Samuel Thibault
Subject: [hurd] 07/12: libmachdev: drop debugging printf
Date: Wed, 10 Dec 2014 15:16:59 +0000

This is an automated email from the git hooks/post-receive script.

sthibault pushed a commit to branch dde
in repository hurd.

commit 0a88ac0253454fa9736a0e5e3beba6a67041e18b
Author: Justus Winter <address@hidden>
Date:   Wed Nov 26 12:52:19 2014 +0100

    libmachdev: drop debugging printf
    
    * libmachdev/net.c (netif_rx_handle): Avoid calling `printf' for every
    incoming handle.
---
 libmachdev/net.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/libmachdev/net.c b/libmachdev/net.c
index 53edcd0..5a5cd5d 100644
--- a/libmachdev/net.c
+++ b/libmachdev/net.c
@@ -104,8 +104,6 @@ static struct net_data *nd_head;
 
 extern struct device_emulation_ops linux_net_emulation_ops;
 
-static int print_packet_size = 1;
-
 static mach_msg_type_t header_type = 
 {
   MACH_MSG_TYPE_BYTE,
@@ -230,9 +228,6 @@ netif_rx_handle (char *data, int len, struct net_device 
*dev)
   struct packet_header *ph;
   struct net_data *nd;
 
-  if (print_packet_size)
-    printf ("netif_rx: length %d\n", len);
-
   nd = search_nd(dev);
   assert (nd);
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-hurd/hurd.git



reply via email to

[Prev in Thread] Current Thread [Next in Thread]