From 82ab825b5c62fe0dfd7521244ff40baa47352268 Mon Sep 17 00:00:00 2001 From: Marcel Holtmann Date: Wed, 9 Jan 2013 19:00:45 -0800 Subject: [PATCH] shared: Use < for management commands and > for events --- src/shared/mgmt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shared/mgmt.c b/src/shared/mgmt.c index c9dda391c..0ead788d8 100644 --- a/src/shared/mgmt.c +++ b/src/shared/mgmt.c @@ -164,7 +164,7 @@ static gboolean can_write_data(GIOChannel *channel, GIOCondition cond, "[0x%04x] command 0x%04x", request->index, request->opcode); - util_hexdump('>', request->buf, bytes_written, + util_hexdump('<', request->buf, bytes_written, mgmt->debug_callback, mgmt->debug_data); mgmt->pending_list = g_list_append(mgmt->pending_list, request); @@ -283,7 +283,7 @@ static gboolean received_data(GIOChannel *channel, GIOCondition cond, if (bytes_read < 0) return TRUE; - util_hexdump('<', mgmt->buf, bytes_read, + util_hexdump('>', mgmt->buf, bytes_read, mgmt->debug_callback, mgmt->debug_data); if (bytes_read < MGMT_HDR_SIZE) -- 2.47.3