Re: [gtk-vnc-devel] [patch] - Print a debug message



This time with the patch :)

Em Qua, 2008-01-16 às 16:55 -0300, Jonh Wendell escreveu:
> Hi,
> 
> This is a simple patch to print the unknown encoding or message before
> close the connection.
> 
> I needed this in order to know what was coming from the Ultravnc server.
> (yes, again ultravnc :))
> 
> Ok to commit?
> 
> Bye,
-- 
Jonh Wendell
www.bani.com.br

# HG changeset patch
# User Jonh Wendell <wendell bani com br>
# Date 1200513106 10800
# Node ID 3a0afe359edfee1c2fd3f387c1db89f8e4798244
# Parent  5912e584132d5844c4169e79100b4f6fa00b9d6f
Print a debug message when receive an unknown message

diff -r 5912e584132d -r 3a0afe359edf src/gvnc.c
--- a/src/gvnc.c	Tue Jan 15 11:07:35 2008 -0500
+++ b/src/gvnc.c	Wed Jan 16 16:51:46 2008 -0300
@@ -1884,6 +1884,7 @@ static void gvnc_framebuffer_update(stru
 		gvnc_xcursor(gvnc, x, y, width, height);
 		break;
 	default:
+		GVNC_DEBUG("Received an unknown encoding type: %d\n", etype);
 		gvnc->has_error = TRUE;
 		break;
 	}
@@ -1983,6 +1984,7 @@ gboolean gvnc_server_message(struct gvnc
 		free(data);
 	}	break;
 	default:
+		GVNC_DEBUG("Received an unknown message: %u\n", msg);
 		gvnc->has_error = TRUE;
 		break;
 	}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]