mirror of https://github.com/xemu-project/xemu.git
slirp: replace error_report() with g_critical()
Reduce dependency on QEMU. QEMU could use a custom log handler if it wants to redirect/filter it. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
This commit is contained in:
parent
758ac766fa
commit
90dfa27841
|
@ -417,7 +417,7 @@ void icmp6_input(struct mbuf *m)
|
||||||
icmp6_send_echoreply(m, slirp, ip, icmp);
|
icmp6_send_echoreply(m, slirp, ip, icmp);
|
||||||
} else {
|
} else {
|
||||||
/* TODO */
|
/* TODO */
|
||||||
error_report("external icmpv6 not supported yet");
|
g_critical("external icmpv6 not supported yet");
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ slirp_socketpair_with_oob(int sv[2])
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
error_report("Error: slirp_socketpair(): %s", strerror(errno));
|
g_critical("slirp_socketpair(): %s", strerror(errno));
|
||||||
if (s >= 0) {
|
if (s >= 0) {
|
||||||
closesocket(s);
|
closesocket(s);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1214,7 +1214,7 @@ static int sbuf_tmp_post_load(void *opaque, int version)
|
||||||
}
|
}
|
||||||
if (tmp->woff >= requested_len ||
|
if (tmp->woff >= requested_len ||
|
||||||
tmp->roff >= requested_len) {
|
tmp->roff >= requested_len) {
|
||||||
error_report("invalid sbuf offsets r/w=%u/%u len=%u",
|
g_critical("invalid sbuf offsets r/w=%u/%u len=%u",
|
||||||
tmp->roff, tmp->woff, requested_len);
|
tmp->roff, tmp->woff, requested_len);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
@ -1323,7 +1323,7 @@ static int ss_family_post_load(void *opaque, int version_id)
|
||||||
tss->parent->ss.ss_family = AF_INET6;
|
tss->parent->ss.ss_family = AF_INET6;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
error_report("invalid ss_family type %x", tss->portable_family);
|
g_critical("invalid ss_family type %x", tss->portable_family);
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue