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
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general
To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general