From 15aa054470d65c5b1fbceccf35b3e92ddc0db80d Mon Sep 17 00:00:00 2001 From: Taeho Oh Date: Mon, 22 Feb 2016 23:50:46 +0900 Subject: [PATCH] Cleanup g_print msg. --- omvs_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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;