On our arch, int32_t is defined as long, not int (same for x86 if I remember
correctly):
/work1/nmorey/workspace/alternates/mOS/odp/test/performance/odp_pktio_perf.c:
In function ‘run_test’:
/work1/nmorey/workspace/alternates/mOS/odp/test/performance/odp_pktio_perf.c:654:2:
error: format ‘%d’ expects argument of type ‘int’, but argument 2 has type
‘uint32_t’ [-Werror=format=]
On 06/09/2015 02:02 PM, Maxim Uvarov wrote:
> On 06/09/15 11:06, Nicolas Morey-Chaisemartin wrote:
>> - printf("\tTransmit batch length:\t%d\n", gbl_args->args.tx_batch_len);
>> - printf("\tReceive batch length: \t%d\n", gbl_args->args.rx_batch_len);
>> + printf("\tTransmit batch length:\t%" PRIu32 "\n",
>> + gbl_args->args.tx_batch_len);
>> + printf("\tReceive batch length: \t%" PRIu32 "\n",
>> + gbl_args->args.rx_batch_len);
> which warning compiler prints on %d?
>
> Maxim.
> _______________________________________________
> lng-odp mailing list
> [email protected]
> https://lists.linaro.org/mailman/listinfo/lng-odp
_______________________________________________
lng-odp mailing list
[email protected]
https://lists.linaro.org/mailman/listinfo/lng-odp