Cleanup g_print msg.

This commit is contained in:
Taeho Oh 2016-02-22 23:50:46 +09:00
parent 32b602aad3
commit 15aa054470

View File

@ -120,7 +120,7 @@ static gint _omvs_init_net_devs_info(void) {
gint i; gint i;
if (pcap_findalldevs(&alldevs, errbuf) != 0) { if (pcap_findalldevs(&alldevs, errbuf) != 0) {
g_print("pcap_findalldevs() fail: %s", errbuf); g_print("pcap_findalldevs() fail: %s\n", errbuf);
return -1; return -1;
} }
dev = alldevs; dev = alldevs;
@ -653,9 +653,12 @@ int main(int argc, char *argv[]) {
time = g_get_monotonic_time(); time = g_get_monotonic_time();
m3u_path = g_strdup_printf("%s/omvs_%" G_GUINT64_FORMAT ".m3u", _omvs_outdir, m3u_path = g_strdup_printf("%s/omvs_%" G_GUINT64_FORMAT ".m3u", _omvs_outdir,
time); time);
if (!_omvs_quiet) {
g_print("openning %s\n", m3u_path);
}
_omvs_m3u_fp = fopen(m3u_path, "w"); _omvs_m3u_fp = fopen(m3u_path, "w");
if (_omvs_m3u_fp == NULL) { 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); g_free(m3u_path);
ret = -7; ret = -7;
goto finish_return; goto finish_return;