提交 fc3be0ae authored 作者: Anthony Minessale's avatar Anthony Minessale

compiler err

上级 b7b94082
...@@ -77,8 +77,9 @@ static int t31_at_tx_handler(at_state_t *s, void *user_data, const uint8_t *buf, ...@@ -77,8 +77,9 @@ static int t31_at_tx_handler(at_state_t *s, void *user_data, const uint8_t *buf,
wrote = write(modem->master, buf, len); wrote = write(modem->master, buf, len);
if (wrote != len) { if (wrote != len) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to pass the full buffer onto the device file. %zd bytes of %ld written: %s\n", switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to pass the full buffer onto the device file. "
wrote, len, strerror(errno)); "%"SWITCH_SSIZE_T_FMT " bytes of " "%"SWITCH_SIZE_T_FMT " written: %s\n", wrote, len, strerror(errno));
if (wrote == -1) wrote = 0; if (wrote == -1) wrote = 0;
if (tcflush(modem->master, TCOFLUSH)) { if (tcflush(modem->master, TCOFLUSH)) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论