byte = send(sock, (const void *)&input, sizeof(input), 0);
if (byte != sizeof(input)) {
- _E("[CPU-BOOSTING-PLUGIN] error is based on %s", strerror(errno));
+ char error_buf[1024];
+ strerror_r(errno, error_buf, sizeof(error_buf));
+
+ _E("[CPU-BOOSTING-PLUGIN] error is based on %s", error_buf);
_E("[CPU-BOOSTING-PLUGIN] client input size is %u, but sent size is %d",
(unsigned int)sizeof(input), byte);
return -1;
if (input.body_size > 0) {
byte = send(sock, (const void *)input.pid.tid, input.body_size, 0);
if (byte != input.body_size) {
- _E("[CPU-BOOSTING-PLUGIN] error is based on %s", strerror(errno));
+ char error_buf[1024];
+ strerror_r(errno, error_buf, sizeof(error_buf));
+
+ _E("[CPU-BOOSTING-PLUGIN] error is based on %s", error_buf);
_E("[CPU-BOOSTING-PLUGIN] client input size is %d, but sent size is %d",
input.body_size, byte);
return -1;
byte = recv(sock, (void *)&output, sizeof(output), 0);
if (byte != sizeof(output)) {
- _E("[CPU-BOOSTING-PLUGIN] error is based on %s", strerror(errno));
+ char error_buf[1024];
+ strerror_r(errno, error_buf, sizeof(error_buf));
+
+ _E("[CPU-BOOSTING-PLUGIN] error is based on %s", error_buf);
_E("[CPU-BOOSTING-PLUGIN] client output size is %u, but received size is %d",
(unsigned int)sizeof(output), byte);
ret = -1;
byte = recv(sock, (void *)level->tid_level, level->tid_count * sizeof(int), 0);
if (byte != level->tid_count * sizeof(int)) {
- _E("[CPU-BOOSTING-PLUGIN] error is based on %s", strerror(errno));
+ char error_buf[1024];
+ strerror_r(errno, error_buf, sizeof(error_buf));
+
+ _E("[CPU-BOOSTING-PLUGIN] error is based on %s", error_buf);
_E("[CPU-BOOSTING-PLUGIN] client output size is %u, but received size is %d",
level->tid_count * (unsigned int)sizeof(int), byte);
free(level->tid_level);