From 9018af44dadebb5ed50ba9336007fc9da653a9a0 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Mon, 26 Jan 2015 15:15:47 +0100 Subject: More debug logging for screen layout changes --- unix/xserver/hw/vnc/XserverDesktop.cc | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'unix/xserver/hw') diff --git a/unix/xserver/hw/vnc/XserverDesktop.cc b/unix/xserver/hw/vnc/XserverDesktop.cc index 3774b7f6..b8988131 100644 --- a/unix/xserver/hw/vnc/XserverDesktop.cc +++ b/unix/xserver/hw/vnc/XserverDesktop.cc @@ -653,6 +653,12 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height, if (vncRandRGetOutputCount(screenIndex) == 0) return rfb::resultProhibited; + char buffer[2048]; + vlog.debug("Got request for framebuffer resize to %dx%d", + fb_width, fb_height); + layout.print(buffer, sizeof(buffer)); + vlog.debug("%s", buffer); + /* * First check that we don't have any active clone modes. That's just * too messy to deal with. @@ -667,6 +673,8 @@ unsigned int XserverDesktop::setScreenLayout(int fb_width, int fb_height, /* Try to create more outputs if needed... (only works on Xvnc) */ if (layout.num_screens() > availableOutputs) { + vlog.debug("Insufficient screens. Need to create %d more.", + layout.num_screens() - availableOutputs); ret = vncRandRCreateOutputs(screenIndex, layout.num_screens() - availableOutputs); if (ret < 0) { -- cgit v1.2.3