<div dir="ltr"><div class="gmail_default" style="font-size:small">I have a sent v2. It uses PRIdrtems_vector_number as the specifier.</div><div class="gmail_default" style="font-size:small">Please have a look at it.</div><div class="gmail_default" style="font-size:small"><a href="https://lists.rtems.org/pipermail/devel/2020-March/058716.html">https://lists.rtems.org/pipermail/devel/2020-March/058716.html</a><br></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Thank you,</div><div class="gmail_default" style="font-size:small">Niteesh</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Mar 29, 2020 at 5:17 AM Gedare Bloom <<a href="mailto:gedare@rtems.org">gedare@rtems.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sat, Mar 28, 2020 at 10:11 AM Joel Sherrill <<a href="mailto:joel@rtems.org" target="_blank">joel@rtems.org</a>> wrote:<br>
><br>
> This looks ok. UNLESS we have an RTEMS specific inttypes.h format specifier for vector.<br>
><br>
> I don't recall where those are defined or documented. :(<br>
><br>
<br>
Maybe we ought to, but this should never be an lu anyway.<br>
<br>
> On Sat, Mar 28, 2020, 5:50 AM G S Niteesh Babu <<a href="mailto:niteesh.gs@gmail.com" target="_blank">niteesh.gs@gmail.com</a>> wrote:<br>
>><br>
>> 1) _Memory_Initialize makes pointer from integer w<br>
>> ithout a cast.<br>
>> 2) printf format error, expects %u but %lu provided.<br>
>> ---<br>
>>  bsps/arm/raspberrypi/irq/irq.c             | 2 +-<br>
>>  bsps/arm/raspberrypi/start/bspstarthooks.c | 2 ++<br>
>>  2 files changed, 3 insertions(+), 1 deletion(-)<br>
>><br>
>> diff --git a/bsps/arm/raspberrypi/irq/irq.c b/bsps/arm/raspberrypi/irq/irq.c<br>
>> index 9e1bcfc1bc..73dcad298f 100644<br>
>> --- a/bsps/arm/raspberrypi/irq/irq.c<br>
>> +++ b/bsps/arm/raspberrypi/irq/irq.c<br>
>> @@ -157,7 +157,7 @@ void bsp_interrupt_vector_disable(rtems_vector_number vector)<br>
>><br>
>>  void bsp_interrupt_handler_default(rtems_vector_number vector)<br>
>>  {<br>
>> -    printk("spurious interrupt: %lu\n", vector);<br>
>> +    printk("spurious interrupt: %u\n", vector);<br>
>>  }<br>
>><br>
>>  rtems_status_code bsp_interrupt_facility_initialize(void)<br>
>> diff --git a/bsps/arm/raspberrypi/start/bspstarthooks.c b/bsps/arm/raspberrypi/start/bspstarthooks.c<br>
>> index fd6aa53059..eb6546db1c 100644<br>
>> --- a/bsps/arm/raspberrypi/start/bspstarthooks.c<br>
>> +++ b/bsps/arm/raspberrypi/start/bspstarthooks.c<br>
>> @@ -184,7 +184,9 @@ static void bsp_memory_initialize(void)<br>
>>  {<br>
>>    _Memory_Initialize(<br>
>>      &_Memory_Areas[0],<br>
>> +    (void *)<br>
>>      raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].begin,<br>
>> +    (void *)<br>
>>      raspberrypi_mmu_config_table[ARMV7_CP15_START_WORKSPACE_ENTRY_INDEX].end<br>
>>    );<br>
>>  }<br>
>> --<br>
>> 2.17.1<br>
>><br>
> _______________________________________________<br>
> devel mailing list<br>
> <a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
> <a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>