Always printing what we are sending, when DEBUG_SEAMLESS is enabled.

Use 0x%08lx instead of 0x%p.


git-svn-id: svn://svn.code.sf.net/p/rdesktop/code/branches/seamlessrdp-branch/rdesktop@1115 423420c4-83ab-492f-b58f-81f9feb106b5
This commit is contained in:
Peter Åstrand 2006-03-13 15:04:51 +00:00
parent 7b4304a21c
commit 5652570792

View File

@ -67,7 +67,7 @@ seamless_process_line(const char *line, void *data)
l = xstrdup(line); l = xstrdup(line);
p = l; p = l;
DEBUG_SEAMLESS(("seamlessrdp line:%s\n", p)); DEBUG_SEAMLESS(("seamlessrdp got:%s\n", p));
if (!g_seamless_rdp) if (!g_seamless_rdp)
return True; return True;
@ -260,6 +260,8 @@ seamless_send(const char *format, ...)
s = channel_init(seamless_channel, len); s = channel_init(seamless_channel, len);
out_uint8p(s, buf, len) s_mark_end(s); out_uint8p(s, buf, len) s_mark_end(s);
DEBUG_SEAMLESS(("SeamlessRDP sending:%s", buf));
#if 0 #if 0
printf("seamless send:\n"); printf("seamless send:\n");
hexdump(s->channel_hdr + 8, s->end - s->channel_hdr - 8); hexdump(s->channel_hdr + 8, s->end - s->channel_hdr - 8);
@ -279,7 +281,5 @@ seamless_send_sync()
void void
seamless_send_state(unsigned long id, unsigned int state, unsigned long flags) seamless_send_state(unsigned long id, unsigned int state, unsigned long flags)
{ {
seamless_send("STATE,0x%08lx,0x%x,0x%lx\n", id, state, flags);
DEBUG_SEAMLESS(("sending STATE,0x%p,0x%x,0x%x\n", id, state, flags));
seamless_send("STATE,0x%p,0x%x,0x%x", id, state, flags);
} }