[ofa-general] Re: [PATCH 1/5] libibnetdisc: make all fields of ibnd_node_t public

Sasha Khapyorsky sashak at voltaire.com
Sun Aug 16 03:29:04 PDT 2009


On 20:42 Thu 13 Aug     , Ira Weiny wrote:
> 
>  static void dump_endnode(ib_portid_t * path, char *prompt,
> -			 struct ibnd_node *node, struct ibnd_port *port)
> +			 ibnd_node_t * node, struct ibnd_port *port)
>  {
>  	char type[64];
>  	if (!show_progress)
>  		return;
>  
> -	mad_dump_node_type(type, 64, &(node->node.type), sizeof(int));
> -
> -	printf("%s -> %s %s {%016" PRIx64 "} portnum %d base lid %d-%d\"%s\"\n",
> -	       portid2str(path), prompt, type, node->node.guid,
> -	       node->node.type == IB_NODE_SWITCH ? 0 : port->port.portnum,
> -	       port->port.base_lid,
> -	       port->port.base_lid + (1 << port->port.lmc) - 1,
> -	       node->node.nodedesc);
> +	mad_dump_node_type(type, 64, &(node->type), sizeof(int)),

',' at end of the statement. I'm fixing this (again :))

Sasha

> +	    printf("%s -> %s %s {%016" PRIx64
> +		   "} portnum %d base lid %d-%d\"%s\"\n", portid2str(path),
> +		   prompt, type, node->guid,
> +		   node->type == IB_NODE_SWITCH ? 0 : port->port.portnum,
> +		   port->port.base_lid,
> +		   port->port.base_lid + (1 << port->port.lmc) - 1,
> +		   node->nodedesc);
>  }



More information about the general mailing list