mirror of
https://github.com/apache/nuttx.git
synced 2026-06-04 23:03:27 +08:00
VNC: Add option to enable VNC server debug without GRAPHICS debug
This commit is contained in:
@@ -127,9 +127,20 @@ config VNCSERVER_INBUFFER_SIZE
|
|||||||
int "Input buffer size"
|
int "Input buffer size"
|
||||||
default 80
|
default 80
|
||||||
|
|
||||||
|
config VNCSERVER_DEBUG
|
||||||
|
bool "VNC Server debug"
|
||||||
|
default n
|
||||||
|
depends on DEBUG && !DEBUG_GRAPHICS
|
||||||
|
---help---
|
||||||
|
Normally VNC debug output is selected with DEBUG_GRAPHICS. The VNC
|
||||||
|
server server suupport this special option to enable GRAPHICS debug
|
||||||
|
output for the VNC server while GRAPHICS debug is disabled. This
|
||||||
|
provides an cleaner, less cluttered output when you only wish to
|
||||||
|
debug the VNC server versus enabling DEBUG_GRAPHICS globally.
|
||||||
|
|
||||||
config VNCSERVER_UPDATE_DEBUG
|
config VNCSERVER_UPDATE_DEBUG
|
||||||
bool "Detailed updater debug"
|
bool "Detailed updater debug"
|
||||||
default n
|
default n
|
||||||
depends on DEBUG_GRAPHICS
|
depends on DEBUG_GRAPHICS || VNCSERVER_DEBUG
|
||||||
|
|
||||||
endif # VNCSERVER
|
endif # VNCSERVER
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/kthread.h>
|
#include <nuttx/kthread.h>
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#ifdef CONFIG_NET_SOCKOPTS
|
#ifdef CONFIG_NET_SOCKOPTS
|
||||||
|
|||||||
@@ -42,6 +42,14 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include "vnc_server.h"
|
#include "vnc_server.h"
|
||||||
|
|||||||
@@ -41,6 +41,14 @@
|
|||||||
|
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#ifdef CONFIG_NET_SOCKOPTS
|
#ifdef CONFIG_NET_SOCKOPTS
|
||||||
|
|||||||
@@ -42,6 +42,14 @@
|
|||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include "vnc_server.h"
|
#include "vnc_server.h"
|
||||||
|
|||||||
@@ -46,6 +46,14 @@
|
|||||||
#include <queue.h>
|
#include <queue.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#include <arpa/inet.h>
|
#include <arpa/inet.h>
|
||||||
|
|||||||
@@ -47,6 +47,15 @@
|
|||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#if defined(CONFIG_VNCSERVER_DEBUG) && !defined(CONFIG_DEBUG_GRAPHICS)
|
||||||
|
# undef CONFIG_DEBUG
|
||||||
|
# undef CONFIG_DEBUG_VERBOSE
|
||||||
|
# define CONFIG_DEBUG 1
|
||||||
|
# define CONFIG_DEBUG_VERBOSE 1
|
||||||
|
# define CONFIG_DEBUG_GRAPHICS 1
|
||||||
|
#endif
|
||||||
|
#include <debug.h>
|
||||||
|
|
||||||
#include <nuttx/semaphore.h>
|
#include <nuttx/semaphore.h>
|
||||||
|
|
||||||
#include "vnc_server.h"
|
#include "vnc_server.h"
|
||||||
|
|||||||
Reference in New Issue
Block a user