[Spice-devel] [PATCH 06/12] server: print subtype when adding CHAR_DEVICE interfaces
Alon Levy
alevy at redhat.com
Wed Oct 27 09:36:47 PDT 2010
---
server/reds.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/server/reds.c b/server/reds.c
index 3c39694..8b7b554 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -3448,6 +3448,7 @@ static int spice_server_char_device_add_interface(SpiceServer *s,
SpiceCharDeviceInterface* sif;
sif = SPICE_CONTAINEROF(char_device->base.sif, SpiceCharDeviceInterface, base);
+ red_printf("CHAR_DEVICE %s", char_device->subtype);
if (strcmp(char_device->subtype, SUBTYPE_VDAGENT) == 0) {
if (vdagent) {
red_printf("vdagent already attached");
@@ -3549,7 +3550,6 @@ __visible__ int spice_server_add_interface(SpiceServer *s,
snd_attach_record(SPICE_CONTAINEROF(sin, SpiceRecordInstance, base));
} else if (strcmp(interface->type, SPICE_INTERFACE_CHAR_DEVICE) == 0) {
- red_printf("SPICE_INTERFACE_CHAR_DEVICE");
if (interface->major_version != SPICE_INTERFACE_CHAR_DEVICE_MAJOR ||
interface->minor_version < SPICE_INTERFACE_CHAR_DEVICE_MINOR) {
red_printf("unsupported char device interface");
--
1.7.3.1
More information about the Spice-devel
mailing list