Remove undefined sip field from iperf config logging

The iperf_cfg_t struct doesn't have a sip (source IP) field,
only dip (destination IP). Remove sip from logging statement.
This commit is contained in:
Bob 2025-11-09 02:35:16 +00:00
parent def2034d07
commit ed77cfe86f
1 changed files with 2 additions and 2 deletions

View File

@ -256,10 +256,10 @@ static int cmd_iperf(int argc, char **argv)
cfg.bw_lim = iperf_args.bw->ival[0];
}
ESP_LOGI(TAG, "mode=%s-%s sip=%u.%u.%u.%u:%u, dip=%u.%u.%u.%u:%u, interval=%u, time=%u",
ESP_LOGI(TAG, "mode=%s-%s sport=%u, dip=%u.%u.%u.%u:%u, interval=%u, time=%u",
(cfg.flag & IPERF_FLAG_TCP) ? "tcp" : "udp",
(cfg.flag & IPERF_FLAG_SERVER) ? "server" : "client",
cfg.sip & 0xFF, (cfg.sip >> 8) & 0xFF, (cfg.sip >> 16) & 0xFF, (cfg.sip >> 24) & 0xFF, cfg.sport,
cfg.sport,
cfg.dip & 0xFF, (cfg.dip >> 8) & 0xFF, (cfg.dip >> 16) & 0xFF, (cfg.dip >> 24) & 0xFF, cfg.dport,
cfg.interval, cfg.time);