diff --git a/omvs_main.c b/omvs_main.c index 9b727f0..beca3dc 100644 --- a/omvs_main.c +++ b/omvs_main.c @@ -120,7 +120,7 @@ static gint _omvs_init_net_devs_info(void) { gint i; if (pcap_findalldevs(&alldevs, errbuf) != 0) { - g_print("pcap_findalldevs() fail: %s", errbuf); + g_print("pcap_findalldevs() fail: %s\n", errbuf); return -1; } dev = alldevs; @@ -653,9 +653,12 @@ int main(int argc, char *argv[]) { time = g_get_monotonic_time(); m3u_path = g_strdup_printf("%s/omvs_%" G_GUINT64_FORMAT ".m3u", _omvs_outdir, time); + if (!_omvs_quiet) { + g_print("openning %s\n", m3u_path); + } _omvs_m3u_fp = fopen(m3u_path, "w"); if (_omvs_m3u_fp == NULL) { - g_print("can't create %s", m3u_path); + g_print("can't create %s\n", m3u_path); g_free(m3u_path); ret = -7; goto finish_return;