dbg: replace zm_uart_send with A_PRINTF
authorOleksij Rempel <linux@rempel-privat.de>
Tue, 23 Apr 2013 13:41:35 +0000 (15:41 +0200)
committerOleksij Rempel <linux@rempel-privat.de>
Tue, 23 Apr 2013 13:49:35 +0000 (15:49 +0200)
commit0fee28e2fede578011de9e91e4c794d79b01fea9
tree070c5b3468ae3afa9cd73dd18908890d2bb85894
parent2fa716b3f523af0abb63d48f2fb7bbfb2e57cef3
dbg: replace zm_uart_send with A_PRINTF

theoretically zm_uart_send should work like snprintf with
limiting size of the string. Practically, string size was ignored:
zm_uart_send(x, y) A_PUTS(x)

As result, terminal was trashed with not printable chars.
We replacing it with A_PRINTF.

Signed-off-by: Oleksij Rempel <linux@rempel-privat.de>
target_firmware/magpie_fw_dev/target/cmnos/dbg_api.c
target_firmware/magpie_fw_dev/target/cmnos/dbg_api.h