MCPcopy Index your code
hub / github.com/RsyncProject/rsync / limit_output_verbosity

Function limit_output_verbosity

options.c:537–563  ·  view source on GitHub ↗

Limit the info+debug flag levels given a verbose-option level limit. */

Source from the content-addressed store, hash-verified

535
536/* Limit the info+debug flag levels given a verbose-option level limit. */
537void limit_output_verbosity(int level)
538{
539 short info_limits[COUNT_INFO], debug_limits[COUNT_DEBUG];
540 int j;
541
542 if (level > MAX_VERBOSITY)
543 return;
544
545 memset(info_limits, 0, sizeof info_limits);
546 memset(debug_limits, 0, sizeof debug_limits);
547
548 /* Compute the level limits in the above arrays. */
549 for (j = 0; j <= level; j++) {
550 parse_output_words(info_words, info_limits, info_verbosity[j], LIMIT_PRIORITY);
551 parse_output_words(debug_words, debug_limits, debug_verbosity[j], LIMIT_PRIORITY);
552 }
553
554 for (j = 0; j < COUNT_INFO; j++) {
555 if (info_levels[j] > info_limits[j])
556 info_levels[j] = info_limits[j];
557 }
558
559 for (j = 0; j < COUNT_DEBUG; j++) {
560 if (debug_levels[j] > debug_limits[j])
561 debug_levels[j] = debug_limits[j];
562 }
563}
564
565void reset_output_levels(void)
566{

Callers 1

rsync_moduleFunction · 0.85

Calls 1

parse_output_wordsFunction · 0.85

Tested by

no test coverage detected