mirror of
https://bitbucket.org/ohhara/ohmulticastvideoscanner.git
synced 2025-08-27 02:31:19 +00:00
Cleanup g_print msg.
This commit is contained in:
parent
32b602aad3
commit
15aa054470
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user