> 
> 
> Based on patch for this for width 0 from Ammar Haj Hamad
> <[email protected]>
> 
> Some implementations when port is down appear to return a link width of 0
> 
> Signed-off-by: Hal Rosenstock <[email protected]>


Thanks applied,
Ira

> ---
> diff --git a/src/dump.c b/src/dump.c
> index 7f3ef7d..efe4bc4 100644
> --- a/src/dump.c
> +++ b/src/dump.c
> @@ -185,7 +185,8 @@ void mad_dump_linkwidth(char *buf, int bufsz, void
> *val, int valsz)
>               break;
>       default:
>               IBWARN("bad width %d", width);
> -             buf[0] = 0;
> +             snprintf(buf, bufsz, "undefined (%d)", width);
> +             break;
>       }
>  }
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to