[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH hurd-dde 4/7] libmachdev: drop debugging printf
From: |
Samuel Thibault |
Subject: |
Re: [PATCH hurd-dde 4/7] libmachdev: drop debugging printf |
Date: |
Wed, 26 Nov 2014 18:48:17 +0100 |
User-agent: |
Mutt/1.5.21+34 (58baf7c9f32f) (2010-12-30) |
Justus Winter, le Wed 26 Nov 2014 15:22:33 +0100, a écrit :
> * libmachdev/net.c (netif_rx_handle): Avoid calling `printf' for every
> incoming handle.
Ack.
> ---
> 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);
>
> --
> 2.1.3
>
--
Samuel
X-Favorit-Cartoon: Calvin and Hobbes
-+- Mail header of Wim van Dorst -+-
- Re: [PATCH hurd-dde 5/7] libmachdev: avoid malloc overhead when sending package, (continued)
[PATCH hurd-dde 6/7] libmachdev: fix size of `net_rcv_msg' message, Justus Winter, 2014/11/26
[PATCH hurd-dde 7/7] libmachdev: drop static libmachdev.so hack, Justus Winter, 2014/11/26
[PATCH hurd-dde 3/7] libmachdev: drop unused function, Justus Winter, 2014/11/26
[PATCH hurd-dde 4/7] libmachdev: drop debugging printf, Justus Winter, 2014/11/26
- Re: [PATCH hurd-dde 4/7] libmachdev: drop debugging printf,
Samuel Thibault <=
Re: [PATCH hurd-dde 1/7] Drop superfluous files, Samuel Thibault, 2014/11/26