@@ -245,7 +245,7 @@ os_mbuf_get(struct os_mbuf_pool *omp, uint16_t leadingspace)
245
245
struct os_mbuf * om ;
246
246
247
247
os_trace_api_u32x2 (OS_TRACE_ID_MBUF_GET , (uint32_t )omp ,
248
- (uint32_t )leadingspace );
248
+ (uint32_t )( uintptr_t ) leadingspace );
249
249
250
250
if (leadingspace > omp -> omp_databuf_len ) {
251
251
om = NULL ;
@@ -265,7 +265,7 @@ os_mbuf_get(struct os_mbuf_pool *omp, uint16_t leadingspace)
265
265
om -> om_omp = omp ;
266
266
267
267
done :
268
- os_trace_api_ret_u32 (OS_TRACE_ID_MBUF_GET , (uint32_t )om );
268
+ os_trace_api_ret_u32 (OS_TRACE_ID_MBUF_GET , (uint32_t )( uintptr_t ) om );
269
269
return om ;
270
270
}
271
271
@@ -276,7 +276,7 @@ os_mbuf_get_pkthdr(struct os_mbuf_pool *omp, uint8_t user_pkthdr_len)
276
276
struct os_mbuf_pkthdr * pkthdr ;
277
277
struct os_mbuf * om ;
278
278
279
- os_trace_api_u32x2 (OS_TRACE_ID_MBUF_GET_PKTHDR , (uint32_t )omp ,
279
+ os_trace_api_u32x2 (OS_TRACE_ID_MBUF_GET_PKTHDR , (uint32_t )( uintptr_t ) omp ,
280
280
(uint32_t )user_pkthdr_len );
281
281
282
282
/* User packet header must fit inside mbuf */
@@ -298,7 +298,7 @@ os_mbuf_get_pkthdr(struct os_mbuf_pool *omp, uint8_t user_pkthdr_len)
298
298
}
299
299
300
300
done :
301
- os_trace_api_ret_u32 (OS_TRACE_ID_MBUF_GET_PKTHDR , (uint32_t )om );
301
+ os_trace_api_ret_u32 (OS_TRACE_ID_MBUF_GET_PKTHDR , (uint32_t )( uintptr_t ) om );
302
302
return om ;
303
303
}
304
304
@@ -307,7 +307,7 @@ os_mbuf_free(struct os_mbuf *om)
307
307
{
308
308
int rc ;
309
309
310
- os_trace_api_u32 (OS_TRACE_ID_MBUF_FREE , (uint32_t )om );
310
+ os_trace_api_u32 (OS_TRACE_ID_MBUF_FREE , (uint32_t )( uintptr_t ) om );
311
311
312
312
if (om -> om_omp != NULL ) {
313
313
rc = os_memblock_put (om -> om_omp -> omp_pool , om );
@@ -329,7 +329,7 @@ os_mbuf_free_chain(struct os_mbuf *om)
329
329
struct os_mbuf * next ;
330
330
int rc ;
331
331
332
- os_trace_api_u32 (OS_TRACE_ID_MBUF_FREE_CHAIN , (uint32_t )om );
332
+ os_trace_api_u32 (OS_TRACE_ID_MBUF_FREE_CHAIN , (uint32_t )( uintptr_t ) om );
333
333
334
334
while (om != NULL ) {
335
335
next = SLIST_NEXT (om , om_next );
0 commit comments