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:
parent
006b97de13
commit
fdfb2109a2
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue