}
#endif
if (error) {
- _E("[CPU-SCHED] Failed to set policy and priority with error = %s", strerror(errno));
+ _E("[CPU-SCHED] Failed to set policy and priority with error = %m");
return RESOURCED_ERROR_FAIL;
}
ret = sched_getscheduler(pid);
if (ret < 0) {
- _E("Failed to call sched_getscheduler by %s", strerror(errno));
+ _E("Failed to call sched_getscheduler by %m");
return RESOURCED_ERROR_FAIL;
}
else
ret = sched_getparam(pid, &sp);
if (ret < 0) {
- _E("Failed to call sched_sched_getparam by %s", strerror(errno));
+ _E("Failed to call sched_sched_getparam by %m");
return RESOURCED_ERROR_FAIL;
}
else {
byte = recv(sock, (void *)&input->client_input, sizeof(input->client_input), 0);
if (byte != sizeof(input->client_input)) {
ret = RESOURCED_ERROR_FAIL;
- if (byte < 0)
- _E("[CPU-BOOSTING] error is based on %s", strerror(errno));
+ if (byte < 0) {
+ _E("[CPU-BOOSTING] error is based on %m");
+ }
else if (byte > 0) {
_E("[CPU-BOOSTING] client input size is %u, but received size is %d",
(unsigned int)sizeof(input->client_input), byte);
byte = recv(sock, (void *)tid_list, body_size, 0);
if (byte != body_size) {
ret = RESOURCED_ERROR_FAIL;
- if (byte < 0)
- _E("[CPU-BOOSTING] error is based on %s", strerror(errno));
+ if (byte < 0) {
+ _E("[CPU-BOOSTING] error is based on %m");
+ }
else if (byte > 0)
_E("[CPU-BOOSTING] client input size is %d, but received size is %d",
body_size, byte);
int new_sock = accept(master_sock, NULL, NULL);
if (new_sock < 0) {
- _E("[CPU-BOOSTING] Failed to allocate a new socket for the client (%s)", strerror(errno));
+ _E("[CPU-BOOSTING] Failed to allocate a new socket for the client (%m)");
goto remove_handler;
}