cpu/cortex-mX_common: fixed type issues

- added explicit cast for stack pointer
- fixed printf type inconsistency