Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
A_PRINTF("Error! Incorrect format.\n\r");
}
+static void db_unknown_command(void)
+{
+ A_PRINTF("Error! Unknown command.\n\r");
+}
+
static void zf_debug_init(void)
{
uint8_t ch;
A_PRINTF("\n\r");
return 0;
}
- else
- {
- A_PRINTF("Error! Unknown command.\n\r");
- return -1;
- }
+
+ db_unknown_command();
+ return -1;
}
/* Serial Flash -> Program */
fast = 1;
else
{
- A_PRINTF("Error! Unknown command.\n\r");
+ db_unknown_command();
return -1;
}
fast = 1;
else
{
- A_PRINTF("Error! Unknown command.\n\r");
+ db_unknown_command();
return -1;
}