Skip to content

Commit

Permalink
slirp: replace a fprintf with g_critical()
Browse files Browse the repository at this point in the history
Reduce dependency on QEMU. QEMU could use a custom glib 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>
  • Loading branch information
elmarco authored and sthibaul committed Jan 13, 2019
1 parent 6c2d098 commit b0866f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slirp/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ int soreadbuf(struct socket *so, const char *buf, int size)

sofcantrcvmore(so);
tcp_sockclosed(sototcpcb(so));
fprintf(stderr, "soreadbuf buffer to small");
g_critical("soreadbuf buffer too small");
return -1;
}

Expand Down

0 comments on commit b0866f0

Please sign in to comment.