[openib-general] [PATCH] osm: Flushing log file after OSM_SYS_LOG message

Sasha Khapyorsky sashak at voltaire.com
Sun Feb 25 11:58:37 PST 2007


On 16:23 Sun 25 Feb     , Yevgeny Kliteynik wrote:
> Hi Hal,
> 
> OSM log should be flushed when OSM_SYS_LOG message is
> printed. We had this once, but somehow it has disappeared.
> 
> This fix has to go both to trunk and to 1.2.
> 
> Thanks,
> 
> --Yevgeny
> 
> Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
> ---
>  osm/opensm/osm_log.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
> 
> diff --git a/osm/opensm/osm_log.c b/osm/opensm/osm_log.c
> index d76031d..f95ed85 100644
> --- a/osm/opensm/osm_log.c
> +++ b/osm/opensm/osm_log.c
> @@ -204,7 +204,8 @@ osm_log(
>  #endif
>   
>      /*  flush log */
> -    if (ret > 0 && (p_log->flush || (verbosity & OSM_LOG_ERROR)) &&
> +    if ( ret > 0 && 
> +        (p_log->flush || (verbosity & OSM_LOG_ERROR) || (verbosity & OSM_LOG_SYS)) &&

verbosity & (OSM_LOG_ERROR|OSM_LOG_SYS)?

Sasha




More information about the general mailing list