[openib-general] [PATCH] osm: port to WinIB stack - osm_log.c
Yevgeny Kliteynik
kliteyn at dev.mellanox.co.il
Mon Oct 23 06:29:55 PDT 2006
Hi Hal
Fixing something that got lost in the porting -
osm_log reports state for windows service.
--
Yevgeny
Signed-off-by: Yevgeny Kliteynik <kliteyn at dev.mellanox.co.il>
Index: osm_log.c
===================================================================
--- osm_log.c (revision 9941)
+++ osm_log.c (working copy)
@@ -81,6 +81,13 @@ static char *month_str[] = {
"Nov",
"Dec"
};
+#else
+void
+OsmReportState(
+ IN const char *p_str);
+#endif /* ndef WIN32 */
+
+#ifndef WIN32
static void truncate_log_file(osm_log_t* const p_log)
{
@@ -146,6 +153,9 @@ osm_log(
printf("%s\n", buffer);
fflush( stdout );
}
+#ifdef WIN32
+ OsmReportState(buffer);
+#endif /* WIN32 */
}
/* regular log to default out_port */
More information about the general
mailing list