save_cmnos_printf is always used as a function pointer
and never as integer
Signed-off-by: Eugene Krasnikov <k.eugene.e@gmail.com>
/* ROM Patch API */
/* save the ROM printf function point */
-extern uint32_t save_cmnos_printf;
+extern int (* save_cmnos_printf)(const char * fmt, ...);
extern unsigned int _data_start_in_rom;
extern unsigned int _data_start;
A_PRINTF(" A_WDT_INIT()\n\r");
#if defined(PROJECT_K2)
- save_cmnos_printf = (uint32_t) fw_cmnos_printf;
+ save_cmnos_printf = fw_cmnos_printf;
#endif
if( hostif == HIF_USB ) {
#if defined(PROJECT_K2)
#if MOVE_PRINT_TO_RAM
- save_cmnos_printf = (uint32_t) _indir_tbl.cmnos.printf._printf;
+ save_cmnos_printf = _indir_tbl.cmnos.printf._printf;
_indir_tbl.cmnos.printf._printf = fw_cmnos_printf;
#endif
_indir_tbl.cmnos.usb._usb_fw_task = _fw_usb_fw_task;
#if defined(PROJECT_K2)
// save the ROM printf function point
-uint32_t save_cmnos_printf;
+int (* save_cmnos_printf)(const char * fmt, ...);
#endif
#define ATH_DATE_STRING __DATE__" "__TIME__