From: Ian Jackson Date: Tue, 8 Sep 2015 14:41:20 +0000 (+0100) Subject: Fix build after "ui/vnc: limit client_cut_text msg payload size" X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=1c8d43cbdf0fc01a8f05acfbf55b805a83da34bb;p=people%2Fliuw%2Flibxenctrl-split%2Fqemu-xen-traditional.git Fix build after "ui/vnc: limit client_cut_text msg payload size" That backport (which also erroneously refers to ui/vnc.c rather than vnc.c in its commit message) broke the build because we do not have `error_report'. Use fprintf to stderr, like the rest of the file. Signed-off-by: Ian Jackson --- diff --git a/vnc.c b/vnc.c index 86c2ff4c..48e5c463 100644 --- a/vnc.c +++ b/vnc.c @@ -1769,8 +1769,8 @@ static int protocol_client_msg(VncState *vs, uint8_t *data, size_t len) uint32_t v; v = read_u32(data, 4); if (v > (1 << 20)) { - error_report("vnc: client_cut_text msg payload has %u bytes" - " which exceeds our limit of 1MB.", v); + fprintf(stderr, "vnc: client_cut_text msg payload has %u bytes" + " which exceeds our limit of 1MB.\n", v); vnc_client_error(vs); break; }