projects
/
paraslash.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix documentation of select command.
[paraslash.git]
/
audiod.c
diff --git
a/audiod.c
b/audiod.c
index
dee31d5
..
6fd8eef
100644
(file)
--- a/
audiod.c
+++ b/
audiod.c
@@
-144,6
+144,8
@@
void para_log(int ll, const char* fmt,...)
if (ll < conf.loglevel_arg)
return;
if (ll < conf.loglevel_arg)
return;
+ if (!logfile && conf.daemon_given)
+ return;
if (!hostname)
hostname = para_hostname();
outfd = logfile? logfile : stderr;
if (!hostname)
hostname = para_hostname();
outfd = logfile? logfile : stderr;
@@
-1107,7
+1109,7
@@
static void set_initial_status(void)
return;
}
if (strcmp(conf.mode_arg, "on"))
return;
}
if (strcmp(conf.mode_arg, "on"))
- PARA_WARNING_LOG("
%s", "
invalid mode\n");
+ PARA_WARNING_LOG("invalid mode\n");
}
/**
}
/**
@@
-1142,7
+1144,7
@@
int main(int argc, char *argv[])
};
if (audiod_cmdline_parser_config_file(config_file, &conf, ¶ms)) {
};
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);
exit(EXIT_FAILURE);
}
free(config_file);