diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2013-01-09 19:00:45 -0800 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2013-01-09 19:00:45 -0800 |
commit | 82ab825b5c62fe0dfd7521244ff40baa47352268 (patch) | |
tree | 2f7434c9923368d9f4ab4aa12dcbf83266aaeb7c | |
parent | ee0c0702f64095467c12d5eb6ba0e702a2ed9cd1 (diff) | |
download | bluez-82ab825b5c62fe0dfd7521244ff40baa47352268.tar.gz |
shared: Use < for management commands and > for events
-rw-r--r-- | src/shared/mgmt.c | 4 |
1 files 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) |