MCPcopy Create free account
hub / github.com/F-Stack/f-stack / report_progress

Function report_progress

freebsd/mips/mips/minidump_machdep.c:99–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97};
98
99static void
100report_progress(uint64_t progress, uint64_t dumpsize)
101{
102 int sofar, i;
103
104 sofar = 100 - ((progress * 100) / dumpsize);
105 for (i = 0; i < nitems(progress_track); i++) {
106 if (sofar < progress_track[i].min_per ||
107 sofar > progress_track[i].max_per)
108 continue;
109 if (progress_track[i].visited)
110 return;
111 progress_track[i].visited = 1;
112 printf("..%d%%", sofar);
113 return;
114 }
115}
116
117static int
118write_buffer(struct dumperinfo *di, char *ptr, size_t sz)

Callers 1

write_bufferFunction · 0.70

Calls 1

printfFunction · 0.50

Tested by

no test coverage detected