role2str
printf(" prevrole: %s\n", role2str(res->hr_previous_role));
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
pjdlog_info("Role changed to %s.", role2str(role));
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
hook_exec(res->hr_exec, "role", res->hr_name, role2str(oldrole),
role2str(res->hr_role), NULL);
nv_add_string(nvout, role2str(res->hr_role), "role%u", no);
nv_add_string(nvout, role2str(res->hr_role), "role%u", no);
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
role2str(res->hr_role));
role2str(res->hr_role));
role2str(res->hr_role));
role2str(res->hr_role));
res->hr_name, role2str(res->hr_role), res->hr_workerpid);
res->hr_name, role2str(res->hr_role), res->hr_workerpid);
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY),
role2str(res->hr_role), role2str(HAST_ROLE_SECONDARY));
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
nv_add_string(nv, role2str(res->hr_role), "prevrole");
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role));
role2str(HAST_ROLE_SECONDARY),
role2str(HAST_ROLE_PRIMARY));
pjdlog_prefix_set("[%s] (%s) ", res->hr_name, role2str(res->hr_role));
setproctitle("%s (%s)", res->hr_name, role2str(res->hr_role));
res->hr_name, role2str(res->hr_role));
const char *role2str(int role);