/systemd-251/src/journal/ |
D | journald-syslog.c | 110 static void forward_syslog_raw(Server *s, int priority, const char *buffer, size_t buffer_len, cons… in forward_syslog_raw() argument 116 if (LOG_PRI(priority) > s->max_level_syslog) in forward_syslog_raw() 123 void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, co… in server_forward_syslog() argument 125 char header_priority[DECIMAL_STR_MAX(priority) + 3], header_time[64], in server_forward_syslog() 133 assert(priority >= 0); in server_forward_syslog() 134 assert(priority <= 999); in server_forward_syslog() 137 if (LOG_PRI(priority) > s->max_level_syslog) in server_forward_syslog() 141 xsprintf(header_priority, "<%i>", priority); in server_forward_syslog() 176 int syslog_fixup_facility(int priority) { in syslog_fixup_facility() argument 178 if ((priority & LOG_FACMASK) == 0) in syslog_fixup_facility() [all …]
|
D | journald-kmsg.c | 30 int priority, in server_forward_kmsg() argument 37 char header_priority[DECIMAL_STR_MAX(priority) + 3], in server_forward_kmsg() 42 assert(priority >= 0); in server_forward_kmsg() 43 assert(priority <= 999); in server_forward_kmsg() 46 if (_unlikely_(LOG_PRI(priority) > s->max_level_kmsg)) in server_forward_kmsg() 54 priority = syslog_fixup_facility(priority); in server_forward_kmsg() 57 xsprintf(header_priority, "<%i>", priority); in server_forward_kmsg() 106 int priority, r; in dev_kmsg_record() local 124 r = safe_atoi(p, &priority); in dev_kmsg_record() 125 if (r < 0 || priority < 0 || priority > 999) in dev_kmsg_record() [all …]
|
D | journald-native.c | 39 int *priority, in server_process_entry_meta() argument 49 *priority = (*priority & LOG_FACMASK) | (p[9] - '0'); in server_process_entry_meta() 54 *priority = (*priority & LOG_PRIMASK) | ((p[16] - '0') << 3); in server_process_entry_meta() 60 *priority = (*priority & LOG_PRIMASK) | (((p[16] - '0')*10 + (p[17] - '0')) << 3); in server_process_entry_meta() 111 int priority = LOG_INFO; in server_process_entry() local 180 &priority, in server_process_entry() 233 &priority, in server_process_entry() 259 if (!client_context_test_priority(context, priority)) in server_process_entry() 264 … server_forward_syslog(s, syslog_fixup_facility(priority), identifier, message, ucred, tv); in server_process_entry() 267 server_forward_kmsg(s, priority, identifier, message, ucred); in server_process_entry() [all …]
|
D | journald-stream.c | 83 int priority; member 185 s->priority, in stdout_stream_save() 251 int priority; in stdout_stream_log() local 272 priority = s->priority; in stdout_stream_log() 275 syslog_parse_priority(&p, &priority, false); in stdout_stream_log() 277 if (!client_context_test_priority(s->context, priority)) in stdout_stream_log() 284 …server_forward_syslog(s->server, syslog_fixup_facility(priority), s->identifier, p, &s->ucred, NUL… in stdout_stream_log() 287 server_forward_kmsg(s->server, priority, s->identifier, p, &s->ucred); in stdout_stream_log() 290 server_forward_console(s->server, priority, s->identifier, p, &s->ucred); in stdout_stream_log() 293 server_forward_wall(s->server, priority, s->identifier, p, &s->ucred); in stdout_stream_log() [all …]
|
D | journald-syslog.h | 6 int syslog_fixup_facility(int priority) _const_; 10 void server_forward_syslog(Server *s, int priority, const char *identifier, const char *message, co…
|
D | journald-wall.c | 13 int priority, in server_forward_wall() argument 25 if (LOG_PRI(priority) > s->max_level_wall) in server_forward_wall()
|
D | test-journal-syslog.c | 24 static void test_syslog_parse_priority_one(const char *str, bool with_facility, int priority, int r… in test_syslog_parse_priority_one() argument 31 assert_se(priority == priority2); in test_syslog_parse_priority_one()
|
D | journald-context.h | 93 static inline bool client_context_test_priority(const ClientContext *c, int priority) { in client_context_test_priority() argument 100 return LOG_PRI(priority) <= c->log_level_max; in client_context_test_priority()
|
D | journald-console.c | 36 int priority, in server_forward_console() argument 53 if (LOG_PRI(priority) > s->max_level_console) in server_forward_console()
|
/systemd-251/src/libsystemd/sd-journal/ |
D | journal-send.c | 87 _public_ int sd_journal_print(int priority, const char *format, ...) { in sd_journal_print() argument 92 r = sd_journal_printv(priority, format, ap); in sd_journal_print() 98 _public_ int sd_journal_printv(int priority, const char *format, va_list ap) { in sd_journal_printv() argument 106 assert_return(priority >= 0, -EINVAL); in sd_journal_printv() 107 assert_return(priority <= 7, -EINVAL); in sd_journal_printv() 110 xsprintf(p, "PRIORITY=%i", priority & LOG_PRIMASK); in sd_journal_printv() 410 _public_ int sd_journal_stream_fd(const char *identifier, int priority, int level_prefix) { in sd_journal_stream_fd() argument 420 assert_return(priority >= 0, -EINVAL); in sd_journal_stream_fd() 421 assert_return(priority <= 7, -EINVAL); in sd_journal_stream_fd() 444 header[l++] = '0' + priority; in sd_journal_stream_fd() [all …]
|
/systemd-251/src/systemd/ |
D | sd-journal.h | 35 int sd_journal_print(int priority, const char *format, ...) _sd_printf_(2, 3); 36 int sd_journal_printv(int priority, const char *format, va_list ap) _sd_printf_(2, 0); 42 int sd_journal_print_with_location(int priority, const char *file, const char *line, const char *fu… 43 int sd_journal_printv_with_location(int priority, const char *file, const char *line, const char *f… 51 #define sd_journal_print(priority, ...) sd_journal_print_with_location(priority, "CODE_FILE=" __FIL… argument 52 #define sd_journal_printv(priority, format, ap) sd_journal_printv_with_location(priority, "CODE_FIL… argument 59 int sd_journal_stream_fd(const char *identifier, int priority, int level_prefix);
|
/systemd-251/src/network/ |
D | networkd-routing-policy-rule.c | 176 siphash24_compress(&rule->priority, sizeof(rule->priority), state); in routing_policy_rule_hash_func() 243 r = CMP(a->priority, b->priority); in routing_policy_rule_compare_func() 329 uint32_t priority; in routing_policy_rule_get() local 336 priority = rule->priority; in routing_policy_rule_get() 337 rule->priority = 0; in routing_policy_rule_get() 339 rule->priority = priority; in routing_policy_rule_get() 371 uint32_t priority; in routing_policy_rule_acquire_priority() local 388 if (tmp->priority == 0 || tmp->priority > 32765) in routing_policy_rule_acquire_priority() 390 r = set_ensure_put(&priorities, NULL, UINT32_TO_PTR(tmp->priority)); in routing_policy_rule_acquire_priority() 401 if (tmp->priority == 0 || tmp->priority > 32765) in routing_policy_rule_acquire_priority() [all …]
|
D | networkd-route-util.c | 65 if (route->priority >= gw->priority) in link_find_default_gateway() 185 if (found && found->priority <= route->priority) in link_address_is_reachable_internal() 262 if (found && found->priority <= route->priority) in manager_address_is_reachable()
|
/systemd-251/src/basic/ |
D | syslog-util.c | 15 int syslog_parse_priority(const char **p, int *priority, bool with_facility) { in syslog_parse_priority() argument 22 assert(priority); in syslog_parse_priority() 51 *priority = a*100 + b*10 + c; in syslog_parse_priority() 53 *priority = (*priority & LOG_FACMASK) | c; in syslog_parse_priority()
|
/systemd-251/src/libsystemd/sd-event/ |
D | sd-event.c | 186 r = CMP(x->priority, y->priority); in pending_prioq_compare() 219 return CMP(x->priority, y->priority); in prepare_prioq_compare() 308 return CMP(x->priority, y->priority); in exit_prioq_compare() 596 hashmap_remove(e->signal_data, &d->priority); in event_free_signal_data() 609 int64_t priority; in event_make_signal_data() local 618 priority = e->signal_sources[sig]->priority; in event_make_signal_data() 620 priority = SD_EVENT_PRIORITY_NORMAL; in event_make_signal_data() 622 d = hashmap_get(e->signal_data, &priority); in event_make_signal_data() 637 .priority = priority, in event_make_signal_data() 640 r = hashmap_ensure_put(&e->signal_data, &uint64_hash_ops, &d->priority, d); in event_make_signal_data() [all …]
|
D | event-util.c | 19 int64_t priority, in event_reset_time() argument 75 r = sd_event_source_set_priority(*s, priority); in event_reset_time() 96 int64_t priority, in event_reset_time_relative() argument 109 …me(e, s, clock, usec_add(usec_now, usec), accuracy, callback, userdata, priority, description, for… in event_reset_time_relative()
|
D | event-source.h | 67 int64_t priority; member 160 int64_t priority; member 204 int64_t priority; member
|
D | event-util.h | 16 int64_t priority, 27 int64_t priority,
|
/systemd-251/src/libudev/ |
D | libudev.c | 128 int priority, const char *file, int line, const char *fn, in udev_set_log_fn() argument 152 _public_ void udev_set_log_priority(struct udev *udev, int priority) { in udev_set_log_priority() argument 153 log_set_max_level(priority); in udev_set_log_priority()
|
/systemd-251/src/journal-remote/ |
D | log-generator.py | 35 priority = 3 variable 58 priority=priority,
|
/systemd-251/src/udev/ |
D | udev-node.c | 116 int r, priority = 0; in link_find_prioritized() local 129 r = device_get_devlink_priority(dev, &priority); in link_find_prioritized() 188 if (target && tmp_prio <= priority) in link_find_prioritized() 207 if (target && tmp_prio <= priority) in link_find_prioritized() 218 priority = tmp_prio; in link_find_prioritized() 321 int priority, r; in update_stack_directory() local 372 r = device_get_devlink_priority(dev, &priority); in update_stack_directory() 376 if (asprintf(&data, "%i:%s", priority, devname) < 0) in update_stack_directory()
|
D | udev-builtin-kmod.c | 19 _printf_(6,0) static void udev_kmod_log(void *data, int priority, const char *file, int line, const… in udev_kmod_log() argument 20 log_internalv(priority, 0, file, line, fn, format, args); in udev_kmod_log()
|
D | udev-ctrl.h | 46 static inline int udev_ctrl_send_set_log_level(UdevCtrl *uctrl, int priority) { in udev_ctrl_send_set_log_level() argument 47 return udev_ctrl_send(uctrl, UDEV_CTRL_SET_LOG_LEVEL, INT_TO_PTR(priority)); in udev_ctrl_send_set_log_level()
|
/systemd-251/src/shared/ |
D | sleep-config.c | 362 &swap->device, &swap->type, &swap->size, &swap->used, &swap->priority); in find_hibernate_location() 396 … if (hibernate_location && swap->priority < hibernate_location->swap->priority) { in find_hibernate_location() 401 (swap->priority == hibernate_location->swap->priority in find_hibernate_location() 456 hibernate_location->offset, hibernate_location->swap->priority); in find_hibernate_location() 460 hibernate_location->offset, hibernate_location->swap->priority); in find_hibernate_location()
|
D | mount-setup.c | 150 int r, priority; in mount_one() local 154 priority = (p->mode & MNT_FATAL) ? LOG_ERR : LOG_DEBUG; in mount_one() 165 … log_full_errno(priority, r, "Failed to determine whether %s is a mount point: %m", p->where); in mount_one() 193 log_full_errno(priority, r, "Failed to mount %s at %s: %m", p->type, p->where); in mount_one() 208 … log_full_errno(priority, r, "Mount point %s not writable after mounting: %m", p->where); in mount_one()
|