snprintf 287 daemons/based/based_callbacks.c snprintf(buffer, 32, "%" PRIu64, ping_seq); snprintf 178 daemons/execd/cts-exec-helper.c snprintf(event_buf_v0, sizeof(event_buf_v0), "NEW_EVENT event_type:%s rsc_id:%s action:%s rc:%s op_status:%s", \ snprintf 275 daemons/execd/remoted_pidone.c snprintf(argv[0], maxlen, "%s", name); snprintf 330 daemons/execd/remoted_tls.c snprintf(port_str, sizeof(port_str), "%d", port); snprintf 535 daemons/fenced/cts-fence-helper.c snprintf(buf, sizeof(buf) - 1, "%d", MAINLOOP_DEFAULT_TIMEOUT + CUSTOM_TIMEOUT_ADDITION); snprintf 234 daemons/fenced/fenced_commands.c snprintf(buffer, sizeof(buffer), "pcmk_%s_timeout", action); snprintf 360 daemons/pacemakerd/pcmkd_corosync.c snprintf(key, PATH_MAX, "uidgid.gid.%u", gid); snprintf 119 lib/common/cib_secrets.c if (snprintf(local_file, FILENAME_MAX, LRM_CIBSECRETS_DIR "/%s/", rsc_id) snprintf 461 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%4d year%s ", snprintf 465 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%2d month%s ", snprintf 469 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%2d day%s ", snprintf 475 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%d second%s", snprintf 480 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%d seconds (", snprintf 484 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%u hour%s%s", snprintf 488 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%u minute%s%s", snprintf 492 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "%u second%s", snprintf 495 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, ")"); snprintf 531 lib/common/iso8601.c snprintf(result, DATE_MAX, "%lld", crm_time_get_seconds(date_time)); snprintf 536 lib/common/iso8601.c snprintf(result, DATE_MAX, "%lld", snprintf 548 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, snprintf 556 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, snprintf 564 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, snprintf 574 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, " "); snprintf 578 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, snprintf 584 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, snprintf 588 lib/common/iso8601.c offset += snprintf(result + offset, DATE_MAX - offset, "Z"); snprintf 1705 lib/common/iso8601.c date_len += snprintf(&date_s[date_len], max-date_len, snprintf 1776 lib/common/iso8601.c offset += snprintf(str + offset, MAXSTR - offset, "%ud", snprintf 1781 lib/common/iso8601.c offset += snprintf(str + offset, MAXSTR - offset, "%uh", snprintf 1786 lib/common/iso8601.c offset += snprintf(str + offset, MAXSTR - offset, "%um", snprintf 1793 lib/common/iso8601.c offset += snprintf(str + offset, MAXSTR - offset, "%u", snprintf 1797 lib/common/iso8601.c offset += snprintf(str + offset, MAXSTR - offset, ".%03u", snprintf 1800 lib/common/iso8601.c (void) snprintf(str + offset, MAXSTR - offset, "s"); snprintf 1803 lib/common/iso8601.c (void) snprintf(str + offset, MAXSTR - offset, "%ums", interval_ms); snprintf 163 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, snprintf 169 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, "(%%n"); snprintf 172 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, "@%%f:%%l"); snprintf 174 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, ")"); snprintf 177 lib/common/logging.c offset += snprintf(fmt + offset, FMT_MAX - offset, " %%g\t%%p: %%b"); snprintf 496 lib/common/logging.c snprintf(buffer, NAME_MAX, "%s.%d", blackbox_file_prefix, counter++); snprintf 614 lib/common/logging.c snprintf(token, sizeof(token), "%.*s", (int)(next - offset), offset); snprintf 473 lib/common/nvpair.c if (snprintf(s, LLSTRSIZE, "%lld", (long long) value) == LLSTRSIZE) { snprintf 299 lib/common/options.c int rv = snprintf(env_name, NAME_MAX, "%s%s", prefixes[i], option); snprintf 342 lib/common/options.c int rv = snprintf(env_name, NAME_MAX, "%s%s", prefixes[i], option); snprintf 184 lib/common/output_log.c offset += snprintf(prefix + offset, LINE_MAX - offset, ": %s", (char *)gIter->data); snprintf 186 lib/common/output_log.c offset = snprintf(prefix, LINE_MAX, "%s", (char *)gIter->data); snprintf 85 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), CRM_DAEMON_DIR"/%s", snprintf 88 lib/common/pid.c rc = snprintf(myexe_path, sizeof(myexe_path), "%s", daemon); snprintf 225 lib/common/pid.c snprintf(buf, sizeof(buf), "%*lld\n", LOCKSTRLEN - 1, (long long) mypid); snprintf 185 lib/common/procfs.c if (snprintf(procfs_exe_path, PATH_MAX, "/proc/%lld/exe", snprintf 99 lib/common/scores.c snprintf(score_s, sizeof(score_s), "%d", score); snprintf 1276 lib/common/strings.c snprintf(buffer, len, "%d", an_int); snprintf 73 lib/common/tests/options/pcmk__env_option_test.c snprintf(buf, NAME_MAX, "HA_%s", long_opt); snprintf 81 lib/common/tests/options/pcmk__set_env_option_test.c snprintf(buf, NAME_MAX, "HA_%s", long_opt); snprintf 26 lib/common/tests/procfs/pcmk__procfs_has_pids_false_test.c snprintf(path, PATH_MAX, "/proc/%u/exe", getpid()); snprintf 25 lib/common/tests/procfs/pcmk__procfs_has_pids_true_test.c snprintf(path, PATH_MAX, "/proc/%u/exe", getpid()); snprintf 100 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "%f", DBL_MAX); snprintf 104 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "%f", -DBL_MAX); snprintf 119 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "1e%d", DBL_MAX_10_EXP + 1); snprintf 123 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "-1e%d", DBL_MAX_10_EXP + 1); snprintf 140 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "1e%d", DBL_MIN_10_EXP - 1); snprintf 145 lib/common/tests/strings/pcmk__scan_double_test.c snprintf(str, LOCAL_BUF_SIZE, "-1e%d", DBL_MIN_10_EXP - 1); snprintf 138 lib/fencing/st_actions.c snprintf(buffer, sizeof(buffer), "pcmk_%s_action", action); snprintf 290 lib/fencing/st_actions.c snprintf(buffer, sizeof(buffer), "pcmk_%s_retries", action_name); snprintf 56 lib/fencing/st_rhcs.c snprintf(buffer, sizeof(buffer), "%s/%s", PCMK__FENCE_BINDIR, snprintf 185 lib/lrmd/lrmd_alerts.c snprintf(timestamp_epoch, sizeof(timestamp_epoch), "%lld", snprintf 190 lib/lrmd/lrmd_alerts.c snprintf(timestamp_usec, sizeof(timestamp_usec), "%06d", now->useconds); snprintf 2087 lib/pacemaker/pcmk_output.c code_width = (int) snprintf(NULL, 0, "%lld", most_negative); snprintf 398 lib/pacemaker/pcmk_simulate.c snprintf(buffer, sizeof(buffer), "%s/%s", dir, namelist[file_num]->d_name); snprintf 1331 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", snprintf 1334 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", snprintf 1338 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, " (%s)", snprintf 1459 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", snprintf 1462 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", snprintf 1466 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, " (%s)", snprintf 1592 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", snprintf 1595 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", snprintf 1599 lib/pengine/bundle.c offset += snprintf(buffer + offset, LINE_MAX - offset, " (%s)", snprintf 943 lib/pengine/native.c snprintf(ra_name, LINE_MAX, "%s%s%s:%s", class, snprintf 1137 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, "%s", class); snprintf 1142 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, snprintf 1146 lib/pengine/native.c offset += snprintf(buffer + offset, LINE_MAX - offset, ":%s", kind); snprintf 376 lib/services/services_linux.c snprintf(buffer, sizeof(buffer), strcmp(key, "OCF_CHECK_LEVEL") != 0 ? "OCF_RESKEY_%s" : "%s", (char *)key); snprintf 1381 lib/services/services_linux.c snprintf(buffer, sizeof(buffer), "%s/%s", root, namelist[lpc]->d_name); snprintf 117 lib/services/services_lsb.c snprintf(ra_pathname, sizeof(ra_pathname), "%s", type); snprintf 119 lib/services/services_lsb.c snprintf(ra_pathname, sizeof(ra_pathname), "%s/%s", snprintf 145 maint/gnulib/lib/ftoastr.c int n = snprintf (buf, bufsize, format, width, prec, promoted_x); snprintf 496 maint/gnulib/lib/getaddrinfo.c if (servicelen <= snprintf (service, servicelen, "%u", port)) snprintf 378 maint/gnulib/lib/parse-datetime.y ? snprintf (buffer, n, "%s", ordinal_values[pc->day_ordinal + 1]) snprintf 379 maint/gnulib/lib/parse-datetime.y : snprintf (buffer, n, "%"PRIdMAX, pc->day_ordinal)); snprintf 389 maint/gnulib/lib/parse-datetime.y snprintf (buffer + len, n - len, &" %s"[len == 0], snprintf 1615 maint/gnulib/lib/parse-datetime.y snprintf (&buf[m], n - m, " TZ=%s", time_zone_str (tz, time_zone_buf)); snprintf 1624 maint/gnulib/lib/parse-datetime.y snprintf (buf, n, "(Y-M-D) %s-%02d-%02d", snprintf 1633 maint/gnulib/lib/parse-datetime.y snprintf (buf, n, "%02d:%02d:%02d", tm->tm_hour, tm->tm_min, tm->tm_sec); snprintf 1676 maint/gnulib/lib/parse-datetime.y i = snprintf (tmp, sizeof tmp, snprintf 1311 maint/gnulib/lib/stdio.in.h _GL_FUNCDECL_RPL (snprintf, int, snprintf 1316 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_RPL (snprintf, int, snprintf 1321 maint/gnulib/lib/stdio.in.h _GL_FUNCDECL_SYS (snprintf, int, snprintf 1327 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_SYS (snprintf, int, snprintf 1332 maint/gnulib/lib/stdio.in.h _GL_CXXALIASWARN (snprintf); snprintf 1337 maint/gnulib/lib/stdio.in.h _GL_WARN_ON_USE (snprintf, "snprintf is unportable - " snprintf 442 maint/gnulib/lib/strerror_r.c snprintf (buf, buflen, "Unknown Application Error (%d)", errnum); snprintf 444 maint/gnulib/lib/strerror_r.c snprintf (buf, buflen, "Unknown error %d", errnum); snprintf 47 maint/gnulib/lib/strsignal.c # define __snprintf snprintf snprintf 195 maint/gnulib/lib/vasnprintf.c # define SNPRINTF snprintf snprintf 205 maint/gnulib/lib/vasnprintf.c # define SNPRINTF snprintf snprintf 39 maint/gnulib/tests/test-c-dtoastr.c snprintf (s, sizeof s, "%#.0f", 1.0); snprintf 39 maint/gnulib/tests/test-c-ldtoastr.c snprintf (s, sizeof s, "%#.0f", 1.0); snprintf 39 maint/gnulib/tests/test-c-snprintf.c snprintf (s, sizeof s, "%#.0f", 1.0); snprintf 51 maint/gnulib/tests/test-c-vasprintf.c snprintf (s, sizeof s, "%#.0f", 1.0); snprintf 54 maint/gnulib/tests/test-c-vsnprintf.c snprintf (s, sizeof s, "%#.0f", 1.0); snprintf 52 maint/gnulib/tests/test-c-xvasprintf.c snprintf (s, sizeof s, "%#.0f", 1.0); snprintf 54 maint/gnulib/tests/test-duplocale.c snprintf (result->numeric, sizeof (result->numeric), snprintf 50 maint/gnulib/tests/test-inttostr.c ? snprintf (ref, sizeof ref, "%jd", (intmax_t) TYPE_MINIMUM (T)) \ snprintf 51 maint/gnulib/tests/test-inttostr.c : snprintf (ref, sizeof ref, "%ju", (uintmax_t) TYPE_MINIMUM (T))) \ snprintf 58 maint/gnulib/tests/test-inttostr.c ? snprintf (ref, sizeof ref, "%jd", (intmax_t) TYPE_MAXIMUM (T)) \ snprintf 59 maint/gnulib/tests/test-inttostr.c : snprintf (ref, sizeof ref, "%ju", (uintmax_t) TYPE_MAXIMUM (T))) \ snprintf 79 maint/gnulib/tests/test-inttostr.c if (snprintf (b, b_size, "%ju", (uintmax_t) 3) == 1 snprintf 58 maint/gnulib/tests/test-nonblocking-misc.h ret = snprintf (line, sizeof (line), "%.6f ", snprintf 36 maint/gnulib/tests/test-snprintf-posix.c test_function (snprintf); snprintf 24 maint/gnulib/tests/test-snprintf.c SIGNATURE_CHECK (snprintf, int, (char *, size_t, char const *, ...)); snprintf 37 maint/gnulib/tests/test-snprintf.c retval = snprintf (NULL, 0, "%d", 12345); snprintf 43 maint/gnulib/tests/test-snprintf.c retval = snprintf (buf, size, "%d", 12345); snprintf 66 maint/gnulib/tests/test-snprintf.c retval = snprintf (result, sizeof (result), "%2$d %1$d", 33, 55); snprintf 183 maint/gnulib/tests/test-stdio-c++.cc SIGNATURE_CHECK (GNULIB_NAMESPACE::snprintf, int, snprintf 33 replace/strerror.c snprintf(whaterr, sizeof(whaterr), "error %d", errnum);