MCPcopy Create free account
hub / github.com/coreutils/coreutils / print_stats

Function print_stats

src/dd.c:822–850  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

820}
821
822static void
823print_stats (void)
824{
825 if (status_level == STATUS_NONE)
826 return;
827
828 if (0 < progress_len)
829 {
830 fputc ('\n', stderr);
831 progress_len = 0;
832 }
833
834 fprintf (stderr,
835 _("%jd+%jd records in\n"
836 "%jd+%jd records out\n"),
837 r_full, r_partial, w_full, w_partial);
838
839 if (r_truncate != 0)
840 fprintf (stderr,
841 ngettext ("%jd truncated record\n",
842 "%jd truncated records\n",
843 select_plural (r_truncate)),
844 r_truncate);
845
846 if (status_level == STATUS_NOXFER)
847 return;
848
849 print_xfer_stats (0);
850}
851
852/* An ordinary signal was received; arrange for the program to exit. */
853

Callers 4

process_signalsFunction · 0.85
finish_upFunction · 0.85
skipFunction · 0.85
dd_copyFunction · 0.85

Calls 2

select_pluralFunction · 0.85
print_xfer_statsFunction · 0.85

Tested by

no test coverage detected