mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(ringbuf): Fixed linux build
This commit is contained in:
parent
b4cc451321
commit
578d092595
@ -4,6 +4,7 @@
|
|||||||
* SPDX-License-Identifier: Apache-2.0
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <inttypes.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include "freertos/FreeRTOS.h"
|
#include "freertos/FreeRTOS.h"
|
||||||
@ -1351,12 +1352,12 @@ void xRingbufferPrintInfo(RingbufHandle_t xRingbuffer)
|
|||||||
{
|
{
|
||||||
Ringbuffer_t *pxRingbuffer = (Ringbuffer_t *)xRingbuffer;
|
Ringbuffer_t *pxRingbuffer = (Ringbuffer_t *)xRingbuffer;
|
||||||
configASSERT(pxRingbuffer);
|
configASSERT(pxRingbuffer);
|
||||||
printf("Rb size:%d\tfree: %d\trptr: %d\tfreeptr: %d\twptr: %d, aptr: %d\n",
|
printf("Rb size:%" PRId32 "\tfree: %" PRId32 "\trptr: %" PRId32 "\tfreeptr: %" PRId32 "\twptr: %" PRId32 ", aptr: %" PRId32 "\n",
|
||||||
pxRingbuffer->xSize, prvGetFreeSize(pxRingbuffer),
|
(int32_t)pxRingbuffer->xSize, (int32_t)prvGetFreeSize(pxRingbuffer),
|
||||||
pxRingbuffer->pucRead - pxRingbuffer->pucHead,
|
(int32_t)(pxRingbuffer->pucRead - pxRingbuffer->pucHead),
|
||||||
pxRingbuffer->pucFree - pxRingbuffer->pucHead,
|
(int32_t)(pxRingbuffer->pucFree - pxRingbuffer->pucHead),
|
||||||
pxRingbuffer->pucWrite - pxRingbuffer->pucHead,
|
(int32_t)(pxRingbuffer->pucWrite - pxRingbuffer->pucHead),
|
||||||
pxRingbuffer->pucAcquire - pxRingbuffer->pucHead);
|
(int32_t)(pxRingbuffer->pucAcquire - pxRingbuffer->pucHead));
|
||||||
}
|
}
|
||||||
|
|
||||||
BaseType_t xRingbufferGetStaticBuffer(RingbufHandle_t xRingbuffer, uint8_t **ppucRingbufferStorage, StaticRingbuffer_t **ppxStaticRingbuffer)
|
BaseType_t xRingbufferGetStaticBuffer(RingbufHandle_t xRingbuffer, uint8_t **ppucRingbufferStorage, StaticRingbuffer_t **ppxStaticRingbuffer)
|
||||||
|
Loading…
Reference in New Issue
Block a user