mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-19 14:58:35 +03:00
fix newline \n\r with \r\n
This commit is contained in:
@@ -160,7 +160,7 @@ extern int main(void)
|
||||
print_banner();
|
||||
board_main_top();
|
||||
|
||||
TRACE_INFO("USB init...\n\r");
|
||||
TRACE_INFO("USB init...\r\n");
|
||||
SIMtrace_USB_Initialize();
|
||||
|
||||
while (USBD_GetState() < USBD_STATE_CONFIGURED) {
|
||||
@@ -169,7 +169,7 @@ extern int main(void)
|
||||
#if 0
|
||||
if (i >= MAX_USB_ITER * 3) {
|
||||
TRACE_ERROR("Resetting board (USB could "
|
||||
"not be configured)\n\r");
|
||||
"not be configured)\r\n");
|
||||
USBD_Disconnect();
|
||||
NVIC_SystemReset();
|
||||
}
|
||||
@@ -177,19 +177,19 @@ extern int main(void)
|
||||
i++;
|
||||
}
|
||||
|
||||
TRACE_INFO("calling configure of all configurations...\n\r");
|
||||
TRACE_INFO("calling configure of all configurations...\r\n");
|
||||
for (i = 1; i < ARRAY_SIZE(config_func_ptrs); i++) {
|
||||
if (config_func_ptrs[i].configure)
|
||||
config_func_ptrs[i].configure();
|
||||
}
|
||||
|
||||
TRACE_INFO("calling init of config %u...\n\r", simtrace_config);
|
||||
TRACE_INFO("calling init of config %u...\r\n", simtrace_config);
|
||||
if (config_func_ptrs[simtrace_config].init) {
|
||||
config_func_ptrs[simtrace_config].init();
|
||||
}
|
||||
last_simtrace_config = simtrace_config;
|
||||
|
||||
TRACE_INFO("entering main loop...\n\r");
|
||||
TRACE_INFO("entering main loop...\r\n");
|
||||
while (1) {
|
||||
WDT_Restart(WDT);
|
||||
#if TRACE_LEVEL >= TRACE_LEVEL_DEBUG
|
||||
@@ -207,12 +207,12 @@ extern int main(void)
|
||||
isUsbConnected = 0;
|
||||
}
|
||||
} else if (isUsbConnected == 0) {
|
||||
TRACE_INFO("USB is now configured\n\r");
|
||||
TRACE_INFO("USB is now configured\r\n");
|
||||
|
||||
isUsbConnected = 1;
|
||||
}
|
||||
if (last_simtrace_config != simtrace_config) {
|
||||
TRACE_INFO("USB config chg %u -> %u\n\r",
|
||||
TRACE_INFO("USB config chg %u -> %u\r\n",
|
||||
last_simtrace_config, simtrace_config);
|
||||
if (config_func_ptrs[last_simtrace_config].exit) {
|
||||
config_func_ptrs[last_simtrace_config].exit();
|
||||
|
||||
Reference in New Issue
Block a user