Searched refs:format (Results 1 - 25 of 50) sorted by relevance

12

/systemd/src/shared/
H A Dinstall-printf.h24 int install_full_printf(UnitFileInstallInfo *i, const char *format, char **ret);
H A Dinstall-printf.c94 int install_full_printf(UnitFileInstallInfo *i, const char *format, char **ret) { argument
129 assert(format);
132 return specifier_printf(format, table, i, ret);
H A Ddropin.h34 const char *name, const char *format, ...) _printf_(5, 6);
H A Ddropin.c99 const char *name, const char *format, ...) {
107 assert(format);
109 va_start(ap, format);
110 r = vasprintf(&p, format, ap);
98 write_drop_in_format(const char *dir, const char *unit, unsigned level, const char *name, const char *format, ...) argument
/systemd/src/core/
H A Dshow-status.h38 int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) _printf_(4,0);
39 int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) _printf_(4,5);
H A Dshow-status.c48 int status_vprintf(const char *status, bool ellipse, bool ephemeral, const char *format, va_list ap) { argument
56 assert(format);
61 if (vasprintf(&s, format, ap) < 0)
113 int status_printf(const char *status, bool ellipse, bool ephemeral, const char *format, ...) { argument
117 assert(format);
119 va_start(ap, format);
120 r = status_vprintf(status, ellipse, ephemeral, format, ap);
H A Dkmod-setup.c38 const char *format,
43 log_internalv(LOG_DEBUG, 0, file, line, fn, format, args);
33 systemd_kmod_log( void *data, int priority, const char *file, int line, const char *fn, const char *format, va_list args) argument
H A Dunit-printf.c199 int unit_name_printf(Unit *u, const char* format, char **ret) { argument
202 * This will use the passed string as format string and
220 assert(format);
223 return specifier_printf(format, table, u, ret);
226 int unit_full_printf(Unit *u, const char *format, char **ret) { argument
273 assert(format);
276 return specifier_printf(format, table, u, ret);
/systemd/src/libsystemd/sd-bus/
H A Dbus-error.h32 int bus_error_setfv(sd_bus_error *e, const char *name, const char *format, va_list ap) _printf_(3,0);
33 int bus_error_set_errnofv(sd_bus_error *e, int error, const char *format, va_list ap) _printf_(3,0);
H A Dbus-error.c253 int bus_error_setfv(sd_bus_error *e, const char *name, const char *format, va_list ap) { argument
269 if (format)
270 (void) vasprintf((char**) &e->message, format, ap);
278 _public_ int sd_bus_error_setf(sd_bus_error *e, const char *name, const char *format, ...) { argument
280 if (format) {
284 va_start(ap, format);
285 r = bus_error_setfv(e, name, format, ap);
470 _public_ int sd_bus_error_set_errnofv(sd_bus_error *e, int error, const char *format, va_list ap) { argument
502 if (format) {
508 r = vasprintf(&m, format, a
536 sd_bus_error_set_errnof(sd_bus_error *e, int error, const char *format, ...) argument
[all...]
/systemd/src/bus-proxyd/
H A Dsynthesize.h32 int synthetic_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) _sd_printf_(3, 4);
34 int synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) _sd_printf_(3, 4);
H A Dsynthesize.c66 int synthetic_reply_method_errorf(sd_bus_message *call, const char *name, const char *format, ...) { argument
70 va_start(ap, format);
71 bus_error_setfv(&error, name, format, ap);
93 int synthetic_reply_method_errnof(sd_bus_message *call, int error, const char *format, ...) { argument
102 va_start(ap, format);
103 sd_bus_error_set_errnofv(&berror, error, format, ap);
/systemd/tools/
H A Dmake-man-rules.py69 return 'man/{}.{}'.format(page, number)
72 return 'man/{}'.format(os.path.basename(file))
76 # print('parsing {}'.format(name), file=sys.stderr)
93 # print('{} => {} [{}]'.format(alias, target, conditional), file=sys.stderr)
111 (CONDITIONAL if conditional else SECTION).format(
114 rules='\n'.join('{}: {}'.format(k,v)
117 htmlrules='\n'.join(HTML_ALIAS_RULE.format(k[:-2],v[:-2])
122 ) + FOOTER.format(dist_files=mjoin(sorted(dist_files)))
/systemd/src/journal/
H A Djournal-send.c82 _public_ int sd_journal_print(int priority, const char *format, ...) { argument
86 va_start(ap, format);
87 r = sd_journal_printv(priority, format, ap);
93 _public_ int sd_journal_printv(int priority, const char *format, va_list ap) { argument
103 assert_return(format, -EINVAL);
108 vsnprintf(buffer+8, sizeof(buffer) - 8, format, ap);
117 _printf_(1, 0) static int fill_iovec_sprintf(const char *format, va_list ap, int extra, struct iovec **_iov) { argument
135 while (format) {
152 if (vasprintf(&buffer, format, aq) < 0) {
159 VA_FORMAT_ADVANCE(format, a
179 sd_journal_send(const char *format, ...) argument
449 sd_journal_print_with_location(int priority, const char *file, const char *line, const char *func, const char *format, ...) argument
460 sd_journal_printv_with_location(int priority, const char *file, const char *line, const char *func, const char *format, va_list ap) argument
489 sd_journal_send_with_location(const char *file, const char *line, const char *func, const char *format, ...) argument
[all...]
/systemd/src/systemd/
H A Dsd-daemon.h218 Similar to sd_notify() but takes a format string.
237 int sd_notifyf(int unset_environment, const char *format, ...) _sd_printf_(2,3);
249 int sd_pid_notifyf(pid_t pid, int unset_environment, const char *format, ...) _sd_printf_(3,4);
H A Dsd-journal.h38 int sd_journal_print(int priority, const char *format, ...) _sd_printf_(2, 3);
39 int sd_journal_printv(int priority, const char *format, va_list ap) _sd_printf_(2, 0);
40 int sd_journal_send(const char *format, ...) _sd_printf_(1, 0) _sd_sentinel_;
45 int sd_journal_print_with_location(int priority, const char *file, const char *line, const char *func, const char *format, ...) _sd_printf_(5, 6);
46 int sd_journal_printv_with_location(int priority, const char *file, const char *line, const char *func, const char *format, va_list ap) _sd_printf_(5, 0);
47 int sd_journal_send_with_location(const char *file, const char *line, const char *func, const char *format, ...) _sd_printf_(4, 0) _sd_sentinel_;
55 #define sd_journal_printv(priority, format, ap) sd_journal_printv_with_location(priority, "CODE_FILE=" __FILE__, "CODE_LINE=" _SD_STRINGIFY(__LINE__), __func__, format, ap)
H A D_sd-common.h31 # define _sd_printf_(a,b) __attribute__ ((format (printf, a, b)))
/systemd/src/journal-remote/
H A Dlog-generator.py51 data = '{:0{}}'.format(counter, OPTIONS.data_size)
54 entry = template.format(m=m,
76 print('Wrote {} bytes'.format(bytes), file=sys.stderr)
H A Dmicrohttpd-util.h43 const char *format, ...) _printf_(3,4);
/systemd/src/basic/
H A Dstdio-util.h33 #define VA_FORMAT_ADVANCE(format, ap) \
37 _k = parse_printf_format((format), ELEMENTSOF(_argtypes), _argtypes); \
73 assert_not_reached("Unknown format string argument."); \
H A Dlog.c661 const char *format,
677 vsnprintf(buffer, sizeof(buffer), format, ap);
688 const char *format, ...) {
693 va_start(ap, format);
694 r = log_internalv(level, error, file, line, func, format, ap);
708 const char *format,
739 vsnprintf(b, l, format, ap);
752 const char *format, ...) {
757 va_start(ap, format);
758 r = log_object_internalv(level, error, file, line, func, object_field, object, format, a
655 log_internalv( int level, int error, const char *file, int line, const char *func, const char *format, va_list ap) argument
682 log_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...) argument
700 log_object_internalv( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *format, va_list ap) argument
744 log_object_internal( int level, int error, const char *file, int line, const char *func, const char *object_field, const char *object, const char *format, ...) argument
764 log_assert( int level, const char *text, const char *file, int line, const char *func, const char *format) argument
806 log_format_iovec( struct iovec *iovec, unsigned iovec_len, unsigned *n, bool newline_separator, int error, const char *format, va_list ap) argument
852 log_struct_internal( int level, int error, const char *file, int line, const char *func, const char *format, ...) argument
1117 log_syntax_internal( const char *unit, int level, const char *config_file, unsigned config_line, int error, const char *file, int line, const char *func, const char *format, ...) argument
[all...]
H A Dlog.h84 const char *format, ...) _printf_(6,7);
92 const char *format,
103 const char *format, ...) _printf_(8,9);
113 const char *format,
122 const char *format, ...) _printf_(6,0) _sentinel_;
135 const char *format,
230 const char *format, ...) _printf_(9, 10);
H A Denv-util.h31 char *replace_env(const char *format, char **env);
/systemd/src/udev/
H A Dudev-builtin-kmod.c62 _printf_(6,0) static void udev_kmod_log(void *data, int priority, const char *file, int line, const char *fn, const char *format, va_list args) { argument
63 log_internalv(priority, 0, file, line, fn, format, args);
/systemd/src/libsystemd/sd-daemon/
H A Dsd-daemon.c536 _public_ int sd_pid_notifyf(pid_t pid, int unset_environment, const char *format, ...) { argument
540 if (format) {
543 va_start(ap, format);
544 r = vasprintf(&p, format, ap);
554 _public_ int sd_notifyf(int unset_environment, const char *format, ...) { argument
558 if (format) {
561 va_start(ap, format);
562 r = vasprintf(&p, format, ap);

Completed in 93 milliseconds

12