--- qemu/slirp/misc.c 2018/04/24 18:04:13 1.1.1.7 +++ qemu/slirp/misc.c 2018/04/24 18:31:21 1.1.1.8 @@ -200,14 +200,8 @@ fork_exec(struct socket *so, const char execvp(argv[0], (char **)argv); /* Ooops, failed, let's tell the user why */ - { - char buff[256]; - - snprintf(buff, sizeof(buff), - "Error: execvp of %s failed: %s\n", - argv[0], strerror(errno)); - write(2, buff, strlen(buff)+1); - } + fprintf(stderr, "Error: execvp of %s failed: %s\n", + argv[0], strerror(errno)); close(0); close(1); close(2); /* XXX */ exit(1); @@ -266,7 +260,7 @@ void lprint(const char *format, ...) va_list args; va_start(args, format); - monitor_vprintf(cur_mon, format, args); + monitor_vprintf(default_mon, format, args); va_end(args); }