[ofa-general] Re: [PATCH V2 1/3] Create a new library libibnetdisc

Sean Hefty sean.hefty at intel.com
Mon Dec 22 22:20:02 PST 2008


>> +void
>> +print_port(ibnd_node_t *node, ibnd_port_t *port)
>> +{
>> +	char remote_guid_str[256];
>> +	char remote_str[256];
>> +	char link_str[256];
>> +	char width_msg[256];
>> +	char speed_msg[256];
>> +	char ext_port_str[256];
>> +
>> +	if (!port)
>> +		return;
>> +
>> +	remote_guid_str[0] = '\0';
>> +	remote_str[0] = '\0';
>> +	link_str[0] = '\0';
>> +	width_msg[0] = '\0';
>> +	speed_msg[0] = '\0';
>> +
>> +	if (port->remoteport) {
>> +		char  remote_name_buf[256];

This function ends up using a lot of stack space.

- Sean




More information about the general mailing list