diff options
| author | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-28 16:19:08 +0100 |
|---|---|---|
| committer | Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> | 2021-02-28 16:58:23 +0100 |
| commit | bf955f1b63e8f5347b6d0aeb550c252e0061a631 (patch) | |
| tree | fb9da92d09bd80120409daa3c35f857678f95f16 | |
| parent | 98aab5b4f49640f71ad9c8f7e60bd44a6e7bccf6 (diff) | |
| download | hardware_replicant_libsamsung-ril-bf955f1b63e8f5347b6d0aeb550c252e0061a631.tar.gz hardware_replicant_libsamsung-ril-bf955f1b63e8f5347b6d0aeb550c252e0061a631.tar.bz2 hardware_replicant_libsamsung-ril-bf955f1b63e8f5347b6d0aeb550c252e0061a631.zip | |
ipc.c: break lines over 80 characters
Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>
| -rw-r--r-- | ipc.c | 36 |
1 files changed, 24 insertions, 12 deletions
@@ -67,7 +67,8 @@ int ipc_fmt_send(unsigned char mseq, unsigned short command, unsigned char type, RIL_CLIENT_LOCK(client); acquire_wake_lock(PARTIAL_WAKE_LOCK, RIL_VERSION_STRING); - rc = ipc_client_send(ipc_fmt_data->ipc_client, mseq, command, type, data, size); + rc = ipc_client_send(ipc_fmt_data->ipc_client, mseq, command, type, + data, size); if (rc < 0) { RIL_LOGE("Sending to %s client failed", client->name); goto error; @@ -182,7 +183,8 @@ int ipc_fmt_create(struct ril_client *client) goto error; } - rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler, NULL); + rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler, + NULL); if (rc < 0) { RIL_LOGE("Setting %s client log handler failed", client->name); goto error; @@ -379,7 +381,8 @@ int ipc_fmt_dispatch(struct ril_client *client, struct ipc_message *message) } } - RIL_LOGD("Unhandled %s message: %s", client->name, ipc_command_string(message->command)); + RIL_LOGD("Unhandled %s message: %s", client->name, + ipc_command_string(message->command)); rc = 0; goto complete; @@ -455,7 +458,8 @@ int ipc_fmt_loop(struct ril_client *client) rc = ipc_client_recv(data->ipc_client, &message); if (rc < 0) { - RIL_LOGE("Receiving from %s client failed", client->name); + RIL_LOGE("Receiving from %s client failed", + client->name); release_wake_lock(RIL_VERSION_STRING); RIL_CLIENT_UNLOCK(client); @@ -514,7 +518,8 @@ int ipc_fmt_request_register(struct ril_client *client, int request, RIL_CLIENT_LOCK(client); - ipc_fmt_request = (struct ipc_fmt_request *) calloc(1, sizeof(struct ipc_fmt_request)); + ipc_fmt_request = (struct ipc_fmt_request *) calloc( + 1, sizeof(struct ipc_fmt_request)); ipc_fmt_request->request = request; ipc_fmt_request->token = token; ipc_fmt_request->seq = 0xff; @@ -554,8 +559,10 @@ int ipc_fmt_request_unregister(struct ril_client *client, int request, ipc_fmt_request = (struct ipc_fmt_request *) list->data; - if (ipc_fmt_request->request == request && ipc_fmt_request->token == token) { - memset(ipc_fmt_request, 0, sizeof(struct ipc_fmt_request)); + if (ipc_fmt_request->request == request && + ipc_fmt_request->token == token) { + memset(ipc_fmt_request, 0, + sizeof(struct ipc_fmt_request)); free(ipc_fmt_request); if (list == data->requests) @@ -594,7 +601,8 @@ int ipc_fmt_request_flush(struct ril_client *client) if (list->data != NULL) { ipc_fmt_request = (struct ipc_fmt_request *) list->data; - memset(ipc_fmt_request, 0, sizeof(struct ipc_fmt_request)); + memset(ipc_fmt_request, 0, + sizeof(struct ipc_fmt_request)); free(ipc_fmt_request); } @@ -735,7 +743,8 @@ int ipc_rfs_send(unsigned char mseq, unsigned short command, const void *data, RIL_CLIENT_LOCK(client); acquire_wake_lock(PARTIAL_WAKE_LOCK, RIL_VERSION_STRING); - rc = ipc_client_send(ipc_rfs_data->ipc_client, mseq, command, 0x00, data, size); + rc = ipc_client_send(ipc_rfs_data->ipc_client, mseq, command, + 0x00, data, size); if (rc < 0) { RIL_LOGE("Sending to %s client failed", client->name); goto error; @@ -796,7 +805,8 @@ int ipc_rfs_create(struct ril_client *client) goto error; } - rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler, NULL); + rc = ipc_client_log_callback_register(ipc_client, ipc_log_handler, + NULL); if (rc < 0) { RIL_LOGE("Setting %s client log handler failed", client->name); goto error; @@ -968,7 +978,8 @@ int ipc_rfs_dispatch(struct ril_client *client, struct ipc_message *message) } } - RIL_LOGD("Unhandled %s message: %s", client->name, ipc_command_string(message->command)); + RIL_LOGD("Unhandled %s message: %s", client->name, + ipc_command_string(message->command)); rc = 0; goto complete; @@ -1043,7 +1054,8 @@ int ipc_rfs_loop(struct ril_client *client) rc = ipc_client_recv(data->ipc_client, &message); if (rc < 0) { - RIL_LOGE("Receiving from %s client failed", client->name); + RIL_LOGE("Receiving from %s client failed", + client->name); release_wake_lock(RIL_VERSION_STRING); RIL_CLIENT_UNLOCK(client); |
