[ofa-general] Re: [PATCH] [TRIVIAL] opensm/osm_state_mgr.c: fixing soma data types and a corresponding log messages

Sasha Khapyorsky sashak at voltaire.com
Mon Jun 30 00:26:24 PDT 2008


On 09:45 Mon 30 Jun     , Yevgeny Kliteynik wrote:
>
> /swgwork/kliteyn/git/management_master/opensm/opensm/osm_state_mgr.c: In 
> function __osm_state_mgr_check_tbl_consistency:
> /swgwork/kliteyn/git/management_master/opensm/opensm/osm_state_mgr.c:922: 
> warning: format %u expects type unsigned int, but argument 5 has type 
> size_t
> /swgwork/kliteyn/git/management_master/opensm/opensm/osm_state_mgr.c:934: 
> warning: format %u expects type unsigned int, but argument 8 has type 
> size_t
> /swgwork/kliteyn/git/management_master/opensm/opensm/osm_state_mgr.c:946: 
> warning: format %u expects type unsigned int, but argument 5 has type 
> size_t

I see. Then '%zu' format should be used in printf instead of just '%u'.

> Patch shortly.

Thanks.

Sasha



More information about the general mailing list