[ofa-general] Re: [PATCH] Fix bug which prevented some GUIDs from being found due to formating issues.

Sasha Khapyorsky sashak at voltaire.com
Fri Feb 29 18:04:41 PST 2008


Hi Ira,

On 11:25 Fri 29 Feb     , Ira Weiny wrote:
>  
>  # =========================================================================
> +# format_guid(guid)
> +# The diags store the guids as strings.  This converts the guid supplied
> +# to the correct string format.
> +# eg: 0x0008f10400411f56 == 0x8f10400411f56
> +#
> +sub format_guid
> +{
> +	my $guid     = hex $_[0];
> +	my $guid_str = "";
> +	$guid_str = sprintf("0x%016x", $guid);
> +	return ($guid_str);
> +}

And now I have this on 32-bit machine:

$ iblinkinfo.pl -S 0x8f10400410bc0
Integer overflow in hexadecimal number at /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/IBswcountlimits.pm line 441.

Sasha



More information about the general mailing list