[ofa-general] [PATCH v3 1/3] Create a new library libibnetdisc

Sasha Khapyorsky sashak at voltaire.com
Sat Apr 25 10:10:36 PDT 2009


On 15:09 Thu 23 Apr     , Ira Weiny wrote:
> 
> diff --git a/infiniband-diags/libibnetdisc/src/ibnetdisc.c b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
> index 410e2dd..cee4c95 100644
> --- a/infiniband-diags/libibnetdisc/src/ibnetdisc.c
> +++ b/infiniband-diags/libibnetdisc/src/ibnetdisc.c
> @@ -59,6 +59,7 @@
>  
>  static int timeout_ms = 2000;
>  static int show_progress = 0;
> +static int ibnd_debug_flg = 0;
>  
>  void
>  decode_port_info(ibnd_port_t *port)
> @@ -638,11 +639,13 @@ void
>  ibnd_debug(int i)
>  {
>  	if (i) {
> -		ibdebug++;
> +		ibnd_debug_flg = 1;
> +		madrpc_show_debug(1);

ibdebug can be incremented couple of times - debug prints will refer its
value, not just yes or no.

Sasha



More information about the general mailing list