diff options
Diffstat (limited to 'samsung-ipc/ipc_utils.c')
-rw-r--r-- | samsung-ipc/ipc_utils.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/samsung-ipc/ipc_utils.c b/samsung-ipc/ipc_utils.c index 6e8d190..5393453 100644 --- a/samsung-ipc/ipc_utils.c +++ b/samsung-ipc/ipc_utils.c @@ -401,7 +401,7 @@ void ipc_hex_dump(struct ipc_client *client, const void *data, size_t size) } } -void ipc_client_log_recv(struct ipc_client *client, struct ipc_message *message, +void ipc_client_log_send(struct ipc_client *client, struct ipc_message *message, const char *prefix) { if (client == NULL || message == NULL || prefix == NULL) @@ -409,8 +409,8 @@ void ipc_client_log_recv(struct ipc_client *client, struct ipc_message *message, switch (client->type) { case IPC_CLIENT_TYPE_FMT: - ipc_client_log(client, "%s: Received FMT message", prefix); - ipc_client_log(client, "%s: Message: aseq=0x%02x, command=%s, type=%s, size=%d", prefix, message->aseq, ipc_command_string(message->command), ipc_response_type_string(message->type), message->size); + ipc_client_log(client, "%s: Sent FMT message", prefix); + ipc_client_log(client, "%s: Message: mseq=0x%02x, command=%s, type=%s, size=%d", prefix, message->mseq, ipc_command_string(message->command), ipc_request_type_string(message->type), message->size); #ifdef DEBUG if (message->size > 0) { ipc_client_log(client, "=============================== FMT data dump ================================"); @@ -420,8 +420,8 @@ void ipc_client_log_recv(struct ipc_client *client, struct ipc_message *message, #endif break; case IPC_CLIENT_TYPE_RFS: - ipc_client_log(client, "%s: Received RFS message", prefix); - ipc_client_log(client, "%s: Message: aseq=0x%02x, command=%s, size=%d", prefix, message->aseq, ipc_command_string(message->command), message->size); + ipc_client_log(client, "%s: Sent RFS message", prefix); + ipc_client_log(client, "%s: Message: mseq=0x%02x, command=%s, size=%d", prefix, message->mseq, ipc_command_string(message->command), message->size); #ifdef DEBUG if (message->size > 0) { ipc_client_log(client, "=============================== RFS data dump ================================"); @@ -433,7 +433,7 @@ void ipc_client_log_recv(struct ipc_client *client, struct ipc_message *message, } } -void ipc_client_log_send(struct ipc_client *client, struct ipc_message *message, +void ipc_client_log_recv(struct ipc_client *client, struct ipc_message *message, const char *prefix) { if (client == NULL || message == NULL || prefix == NULL) @@ -441,8 +441,8 @@ void ipc_client_log_send(struct ipc_client *client, struct ipc_message *message, switch (client->type) { case IPC_CLIENT_TYPE_FMT: - ipc_client_log(client, "%s: Sent FMT message", prefix); - ipc_client_log(client, "%s: Message: mseq=0x%02x, command=%s, type=%s, size=%d", prefix, message->mseq, ipc_command_string(message->command), ipc_request_type_string(message->type), message->size); + ipc_client_log(client, "%s: Received FMT message", prefix); + ipc_client_log(client, "%s: Message: aseq=0x%02x, command=%s, type=%s, size=%d", prefix, message->aseq, ipc_command_string(message->command), ipc_response_type_string(message->type), message->size); #ifdef DEBUG if (message->size > 0) { ipc_client_log(client, "=============================== FMT data dump ================================"); @@ -452,8 +452,8 @@ void ipc_client_log_send(struct ipc_client *client, struct ipc_message *message, #endif break; case IPC_CLIENT_TYPE_RFS: - ipc_client_log(client, "%s: Sent RFS message", prefix); - ipc_client_log(client, "%s: Message: mseq=0x%02x, command=%s, size=%d", prefix, message->mseq, ipc_command_string(message->command), message->size); + ipc_client_log(client, "%s: Received RFS message", prefix); + ipc_client_log(client, "%s: Message: aseq=0x%02x, command=%s, size=%d", prefix, message->aseq, ipc_command_string(message->command), message->size); #ifdef DEBUG if (message->size > 0) { ipc_client_log(client, "=============================== RFS data dump ================================"); |