arch: Use macro BIT for shift operations

BIT macro uses an unsigned int avoiding implementation-defined behavior
when shifting signed types.

MISRA-C rule 10.1

Signed-off-by: Flavio Ceolin <flavio.ceolin@intel.com>
This commit is contained in:
Flavio Ceolin 2019-02-26 10:03:24 -08:00 committed by Anas Nashif
commit fdfb2109a2

View file

@ -198,7 +198,7 @@ XTENSA_ERR_NORET void ReservedInterruptHandler(unsigned int intNo)
printk("*** Reserved Interrupt ***\n");
dump_exc_state();
printk("INTENABLE = 0x%x\n"
"INTERRUPT = 0x%x (%d)\n",
"INTERRUPT = 0x%x (%x)\n",
get_sreg(INTENABLE), (1 << intNo), intNo);
z_NanoFatalErrorHandler(_NANO_ERR_RESERVED_IRQ, &_default_esf);
}