diff options
author | Cole Robinson <crobinso@redhat.com> | 2014-03-21 19:42:20 -0400 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2014-04-25 09:19:58 -0400 |
commit | 3cb498110b074d21bc7bab41d9d47a6879c5818a (patch) | |
tree | c181397b34fe05d3dbfbcfc8120f5bb028fba8bf /slirp.c | |
parent | 5caeaedcb05659c521ae3b442959aeaa63d379d6 (diff) | |
download | slirp-3cb498110b074d21bc7bab41d9d47a6879c5818a.zip slirp-3cb498110b074d21bc7bab41d9d47a6879c5818a.tar.gz slirp-3cb498110b074d21bc7bab41d9d47a6879c5818a.tar.bz2 |
slirp: Remove default_mon usage
These errors don't seem user initiated, so forcibly printing to the
monitor doesn't seem right. Just use error_report.
Drop lprint since it's now unused.
Cc: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Cole Robinson <crobinso@redhat.com>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'slirp.c')
-rw-r--r-- | slirp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -138,7 +138,7 @@ int get_dns_addr(struct in_addr *pdns_addr) return -1; #ifdef DEBUG - lprint("IP address of your DNS(s): "); + fprintf(stderr, "IP address of your DNS(s): "); #endif while (fgets(buff, 512, f) != NULL) { if (sscanf(buff, "nameserver%*[ \t]%256s", buff2) == 1) { @@ -152,17 +152,17 @@ int get_dns_addr(struct in_addr *pdns_addr) } #ifdef DEBUG else - lprint(", "); + fprintf(stderr, ", "); #endif if (++found > 3) { #ifdef DEBUG - lprint("(more)"); + fprintf(stderr, "(more)"); #endif break; } #ifdef DEBUG else - lprint("%s", inet_ntoa(tmp_addr)); + fprintf(stderr, "%s", inet_ntoa(tmp_addr)); #endif } } |