summaryrefslogtreecommitdiffstats
path: root/contrib/ofed/management
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-01-15 14:47:48 +0000
committerhselasky <hselasky@FreeBSD.org>2015-01-15 14:47:48 +0000
commit535e5620c99b6193aa79f6f7f2604a6a1443672f (patch)
treeef2ade505173492d716a9ab862dbca289938b3ce /contrib/ofed/management
parent631f2ce1dd5633cb767c295b04a3f3d45522b530 (diff)
downloadFreeBSD-src-535e5620c99b6193aa79f6f7f2604a6a1443672f.zip
FreeBSD-src-535e5620c99b6193aa79f6f7f2604a6a1443672f.tar.gz
Fix compilation for 32-bit architectures.
PR: 196580 Sponsored by: Mellanox Technologies MFC after: 3 days
Diffstat (limited to 'contrib/ofed/management')
-rw-r--r--contrib/ofed/management/opensm/osmtest/osmtest.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/contrib/ofed/management/opensm/osmtest/osmtest.c b/contrib/ofed/management/opensm/osmtest/osmtest.c
index 57476a5..7b82758 100644
--- a/contrib/ofed/management/opensm/osmtest/osmtest.c
+++ b/contrib/ofed/management/opensm/osmtest/osmtest.c
@@ -2655,7 +2655,7 @@ static ib_api_status_t osmtest_stress_large_rmpp_pr(IN osmtest_t * const p_osmt)
OSM_LOG_ENTER(&p_osmt->log);
gettimeofday(&start_tv, NULL);
- printf("-I- Start time is : %09ld:%06ld [sec:usec]\n", start_tv.tv_sec,
+ printf("-I- Start time is : %09ld:%06ld [sec:usec]\n", (long)start_tv.tv_sec,
(long)start_tv.tv_usec);
while (num_queries < STRESS_LARGE_PR_RMPP_THR) {
@@ -2683,7 +2683,7 @@ static ib_api_status_t osmtest_stress_large_rmpp_pr(IN osmtest_t * const p_osmt)
end_tv.tv_usec);
}
printf("-I- End time is : %09ld:%06ld [sec:usec]\n",
- end_tv.tv_sec, (long)end_tv.tv_usec);
+ (long)end_tv.tv_sec, (long)end_tv.tv_usec);
printf("-I- Querying %" PRId64
" Path Record queries CA to CA (rmpp)\n\ttook %04ld:%06ld [sec:usec]\n",
num_queries, sec_diff, usec_diff);
@@ -2701,7 +2701,7 @@ static ib_api_status_t osmtest_stress_large_rmpp_pr(IN osmtest_t * const p_osmt)
Exit:
gettimeofday(&end_tv, NULL);
printf("-I- End time is : %09ld:%06ld [sec:usec]\n",
- end_tv.tv_sec, (long)end_tv.tv_usec);
+ (long)end_tv.tv_sec, (long)end_tv.tv_usec);
if (end_tv.tv_usec > start_tv.tv_usec) {
sec_diff = end_tv.tv_sec - start_tv.tv_sec;
usec_diff = end_tv.tv_usec - start_tv.tv_usec;
@@ -2733,7 +2733,7 @@ static ib_api_status_t osmtest_stress_large_rmpp(IN osmtest_t * const p_osmt)
OSM_LOG_ENTER(&p_osmt->log);
gettimeofday(&start_tv, NULL);
- printf("-I- Start time is : %09ld:%06ld [sec:usec]\n", start_tv.tv_sec,
+ printf("-I- Start time is : %09ld:%06ld [sec:usec]\n", (long)start_tv.tv_sec,
(long)start_tv.tv_usec);
while (num_queries < STRESS_LARGE_RMPP_THR) {
@@ -2772,7 +2772,7 @@ static ib_api_status_t osmtest_stress_large_rmpp(IN osmtest_t * const p_osmt)
end_tv.tv_usec);
}
printf("-I- End time is : %09ld:%06ld [sec:usec]\n",
- end_tv.tv_sec, (long)end_tv.tv_usec);
+ (long)end_tv.tv_sec, (long)end_tv.tv_usec);
printf("-I- Querying %" PRId64
" large mixed queries (rmpp) took %04ld:%06ld [sec:usec]\n",
num_queries, sec_diff, usec_diff);
@@ -2785,7 +2785,7 @@ static ib_api_status_t osmtest_stress_large_rmpp(IN osmtest_t * const p_osmt)
Exit:
gettimeofday(&end_tv, NULL);
printf("-I- End time is : %09ld:%06ld [sec:usec]\n",
- end_tv.tv_sec, (long)end_tv.tv_usec);
+ (long)end_tv.tv_sec, (long)end_tv.tv_usec);
if (end_tv.tv_usec > start_tv.tv_usec) {
sec_diff = end_tv.tv_sec - start_tv.tv_sec;
usec_diff = end_tv.tv_usec - start_tv.tv_usec;
@@ -2819,7 +2819,7 @@ static ib_api_status_t osmtest_stress_small_rmpp(IN osmtest_t * const p_osmt)
OSM_LOG_ENTER(&p_osmt->log);
gettimeofday(&start_tv, NULL);
printf("-I- Start time is : %09ld:%06ld [sec:usec]\n",
- start_tv.tv_sec, (long)start_tv.tv_usec);
+ (long)start_tv.tv_sec, (long)start_tv.tv_usec);
while ((num_queries < STRESS_SMALL_RMPP_THR) && (num_timeouts < 100)) {
delta_recs = 0;
@@ -2848,7 +2848,7 @@ static ib_api_status_t osmtest_stress_small_rmpp(IN osmtest_t * const p_osmt)
end_tv.tv_usec);
}
printf("-I- End time is : %09ld:%06ld [sec:usec]\n",
- end_tv.tv_sec, (long)end_tv.tv_usec);
+ (long)end_tv.tv_sec, (long)end_tv.tv_usec);
printf("-I- Querying %" PRId64
" port_info queries (single mad) took %04ld:%06ld [sec:usec]\n",
num_queries, sec_diff, usec_diff);
@@ -2859,7 +2859,7 @@ static ib_api_status_t osmtest_stress_small_rmpp(IN osmtest_t * const p_osmt)
Exit:
gettimeofday(&end_tv, NULL);
printf("-I- End time is : %09ld:%06ld [sec:usec]\n",
- end_tv.tv_sec, (long)end_tv.tv_usec);
+ (long)end_tv.tv_sec, (long)end_tv.tv_usec);
if (end_tv.tv_usec > start_tv.tv_usec) {
sec_diff = end_tv.tv_sec - start_tv.tv_sec;
usec_diff = end_tv.tv_usec - start_tv.tv_usec;
OpenPOWER on IntegriCloud