return;
}
if (strcmp(conf.mode_arg, "on"))
- PARA_WARNING_LOG("%s", "invalid mode\n");
+ PARA_WARNING_LOG("invalid mode\n");
}
/**
};
if (audiod_cmdline_parser_config_file(config_file, &conf, ¶ms)) {
- PARA_EMERG_LOG("%s", "parse error in config file\n");
+ PARA_EMERG_LOG("parse error in config file\n");
exit(EXIT_FAILURE);
}
free(config_file);
PARA_ERROR_LOG("received the following: %s\n", pcd->buf);
return;
}
- PARA_INFO_LOG("%s", "<-- [challenge]\n");
+ PARA_INFO_LOG("<-- [challenge]\n");
/* decrypt challenge number */
t->ret = para_decrypt_challenge(pcd->key_file, &pcd->challenge_nr,
(unsigned char *) pcd->buf, 64);
pcd->status = CL_RECEIVED_PROCEED;
if (bytes_received < PROCEED_MSG_LEN + 32)
return;
- PARA_INFO_LOG("%s", "decrypting session key\n");
+ PARA_INFO_LOG("decrypting session key\n");
t->ret = para_decrypt_buffer(pcd->key_file, rc4_buf,
(unsigned char *)pcd->buf + PROCEED_MSG_LEN + 1,
bytes_received - PROCEED_MSG_LEN - 1);
*/
static int check_perms(unsigned int perms, struct server_command *cmd_ptr)
{
- PARA_DEBUG_LOG("%s", "checking permissions\n");
+ PARA_DEBUG_LOG("checking permissions\n");
return (cmd_ptr->perms & perms) < cmd_ptr->perms ? -E_PERM : 0;
}
*/
void init_grabbing(void)
{
- PARA_INFO_LOG("%s", "grab init\n");
+ PARA_INFO_LOG("grab init\n");
INIT_LIST_HEAD(&inactive_grab_client_list);
}
}
return;
case SIGINT:
- PARA_WARNING_LOG("%s", "caught SIGINT, reset");
+ PARA_WARNING_LOG("caught SIGINT, reset");
/* Nothing to do. SIGINT killed our child, para_client stat.
* This get noticed by do_select which resets everything
*/
return;
case SIGUSR1:
- PARA_NOTICE_LOG("%s", "got SIGUSR1, rereading configuration");
+ PARA_NOTICE_LOG("got SIGUSR1, rereading configuration");
com_reread_conf();
return;
case SIGCHLD:
return ret;
}
if (do_select(COMMAND_MODE) >= 0)
- PARA_INFO_LOG("%s", "command complete");
+ PARA_INFO_LOG("command complete");
else
- PARA_NOTICE_LOG("%s", "command aborted");
+ PARA_NOTICE_LOG("command aborted");
print_in_bar(COLOR_MSG, " ");
return 1;
}
};
if (!cf) {
- PARA_WARNING_LOG("%s", "there is no configuration to read");
+ PARA_WARNING_LOG("there is no configuration to read");
return;
}
- PARA_INFO_LOG("%s", "rereading command line options and config file");
+ PARA_INFO_LOG("rereading command line options and config file");
gui_cmdline_parser(_argc, _argv, &conf);
gui_cmdline_parser_config_file(cf, &conf, ¶ms);
- PARA_NOTICE_LOG("%s", "config file reloaded");
+ PARA_NOTICE_LOG("config file reloaded");
if (check_key_map_args() < 0)
finish(EXIT_FAILURE);
}
static void com_shrink_top_win(void)
{
if (top.lines <= theme.top_lines_min) {
- PARA_WARNING_LOG("%s", "can not decrease top window");
+ PARA_WARNING_LOG("can not decrease top window");
return;
}
init_wins(top.lines - 1);
static void com_enlarge_top_win(void)
{
if (bot.lines < 3) {
- PARA_WARNING_LOG("%s", "can not increase top window");
+ PARA_WARNING_LOG("can not increase top window");
return;
}
init_wins(top.lines + 1);
if (!FD_ISSET(phd->fd, &s->wfds))
goto out;
rq = make_request_msg();
- PARA_INFO_LOG("%s", "sending http request\n");
+ PARA_INFO_LOG("sending http request\n");
t->ret = send_va_buffer(phd->fd, "%s", rq);
free(rq);
if (t->ret > 0)
t->ret = recv_pattern(phd->fd, HTTP_OK_MSG, MAXLINE);
if (t->ret < 0)
goto out;
- PARA_INFO_LOG("%s", "received ok msg, streaming\n");
+ PARA_INFO_LOG("received ok msg, streaming\n");
t->ret = 1;
phd->status = HTTP_STREAMING;
goto out;
phsd->status = HTTP_INVALID_GET_REQUEST;
} else {
phsd->status = HTTP_GOT_GET_REQUEST;
- PARA_INFO_LOG("%s",
- "received get request\n");
+ PARA_INFO_LOG("received get request\n");
}
}
break;
return;
*fpos = numbytes - 128;
if (strncmp("TAG", (char *) map + *fpos, 3)) {
- PARA_DEBUG_LOG("%s", "no id3 tag\n");
+ PARA_DEBUG_LOG("no id3 tag\n");
return;
}
*fpos = numbytes - 125;
crypt_function *cf = NULL;
if (!len)
- PARA_CRIT_LOG("%s", "len == 0\n");
+ PARA_CRIT_LOG("len == 0\n");
if (fd + 1 <= cda_size)
cf = crypt_data_array[fd].send;
if (cf) {
ortp_init_target_list();
if (!conf.ortp_no_autostart_given)
sender_status = SENDER_ON;
- PARA_DEBUG_LOG("%s", "ortp sender init complete\n");
+ PARA_DEBUG_LOG("ortp sender init complete\n");
}
dest = outOutputData->mBuffers[i].mData;
while (m > 0) {
if ((n = powd->from->remaining) <= 0) {
- PARA_INFO_LOG("%s", "buffer underrun\n");
+ PARA_INFO_LOG("buffer underrun\n");
return 0;
}
// PARA_INFO_LOG("buf %p: n = %ld, m= %ld\n", powd->from->buffer, n, m);
ret = -E_RECV_SYNTAX;
rn.conf = parse_config(argc, argv, &receiver_num);
if (!rn.conf) {
- PARA_EMERG_LOG("%s", "parse failed\n");
+ PARA_EMERG_LOG("parse failed\n");
goto out;
}
r = &receivers[receiver_num];
*receiver_num = j;
return parse_receiver_args(j, c? ra + len + 1: NULL);
}
- PARA_ERROR_LOG("%s", "receiver not found\n");
+ PARA_ERROR_LOG("receiver not found\n");
return NULL;
}
*/
static void init_sched(void)
{
- PARA_INFO_LOG("%s", "initializing scheduler\n");
+ PARA_INFO_LOG("initializing scheduler\n");
INIT_LIST_HEAD(&pre_select_list);
INIT_LIST_HEAD(&post_select_list);
initialized = 1;
*/
static void handle_sighup(void)
{
- PARA_NOTICE_LOG("%s", "SIGHUP\n");
+ PARA_NOTICE_LOG("SIGHUP\n");
close_log(logfile); /* gets reopened if necessary by parse_config */
logfile = NULL;
parse_config(1); /* reopens log */
random();
chld_pid = fork();
if (chld_pid < 0) {
- PARA_CRIT_LOG("%s", "fork failed\n");
+ PARA_CRIT_LOG("fork failed\n");
goto repeat;
}
if (chld_pid) {
*writer_num = i;
return writers[i].parse_config(c? wa + len + 1 : "");
}
- PARA_ERROR_LOG("%s", "writer not found\n");
+ PARA_ERROR_LOG("writer not found\n");
return NULL;
}