提交 f4fb4fc8 authored 作者: Leon de Rooij's avatar Leon de Rooij

Got errors on 32bit, cast switch_time_t as uint32_t

上级 7ff4484a
...@@ -318,7 +318,7 @@ SWITCH_STANDARD_APP(odbc_query_app_function) ...@@ -318,7 +318,7 @@ SWITCH_STANDARD_APP(odbc_query_app_function)
/* How long did it take ? */ /* How long did it take ? */
stop = switch_micro_time_now(); stop = switch_micro_time_now();
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Elapsed Time %lu ms\n", (stop - start)/1000 ); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Elapsed Time %u ms\n", (uint32_t) (stop - start)/1000 );
} }
......
...@@ -448,7 +448,7 @@ static switch_xml_t xml_odbc_simple_search(const char *section, const char *tag_ ...@@ -448,7 +448,7 @@ static switch_xml_t xml_odbc_simple_search(const char *section, const char *tag_
/* How long did it take ? */ /* How long did it take ? */
done = switch_micro_time_now(); done = switch_micro_time_now();
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Elapsed Time %lu ms\n", (done - start)/1000 ); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG10, "Elapsed Time %u ms\n", (uint32_t) (done - start)/1000 );
done: done:
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论