tree-wide: remove unnecessary LOG_PRI

LOG_DEBUG is already a log level, there is no need to use LOG_PRI which
is for filtering out the facility.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-01-06 00:29:40 -05:00
parent 5dabb1e04e
commit 553d2243e2
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -797,7 +797,7 @@ static int setup_pam(
* daemon. We do things this way to ensure that the main PID
* of the daemon is the one we initially fork()ed. */
if (log_get_max_level() < LOG_PRI(LOG_DEBUG))
if (log_get_max_level() < LOG_DEBUG)
flags |= PAM_SILENT;
pam_code = pam_start(name, user, &conv, &handle);
@@ -1782,7 +1782,7 @@ static int exec_child(ExecCommand *command,
final_env = strv_env_clean(final_env);
if (_unlikely_(log_get_max_level() >= LOG_PRI(LOG_DEBUG))) {
if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) {
_cleanup_free_ char *line;
line = exec_command_line(final_argv);
+1 -1
View File
@@ -822,7 +822,7 @@ int main(int argc, char *argv[]) {
}
}
if (_unlikely_(log_get_max_level() >= LOG_PRI(LOG_DEBUG))) {
if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) {
_cleanup_free_ char *filter;
filter = journal_make_match_string(j);
+1 -1
View File
@@ -1875,7 +1875,7 @@ int main(int argc, char *argv[]) {
return EXIT_FAILURE;
}
if (_unlikely_(log_get_max_level() >= LOG_PRI(LOG_DEBUG))) {
if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) {
_cleanup_free_ char *filter;
filter = journal_make_match_string(j);
+1 -1
View File
@@ -1263,7 +1263,7 @@ int show_journal_by_unit(
if (r < 0)
return r;
if (_unlikely_(log_get_max_level() >= LOG_PRI(LOG_DEBUG))) {
if (_unlikely_(log_get_max_level() >= LOG_DEBUG)) {
_cleanup_free_ char *filter;
filter = journal_make_match_string(j);