summaryrefslogtreecommitdiff
path: root/src/pprint.h
diff options
context:
space:
mode:
authorRyo Nakamura <upa@haeena.net>2022-10-30 12:27:58 +0000
committerRyo Nakamura <upa@haeena.net>2022-10-30 12:27:58 +0000
commite997d692c2812b8e4cbd77865c4ca8112d036d1c (patch)
tree8aaa2b243a61ae661cf69c9c5116bac5d9f4bbed /src/pprint.h
parent453e8f27ced864cb9b4d2a532f017fcc6a86028a (diff)
set nr_threads to # of chunks if # of chunks is small
Diffstat (limited to 'src/pprint.h')
-rw-r--r--src/pprint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pprint.h b/src/pprint.h
index 7fa303e..de1f1f4 100644
--- a/src/pprint.h
+++ b/src/pprint.h
@@ -3,6 +3,11 @@
/* progress print functions */
+/* level 1: print progress bar only.
+ * level 2: print copy start/done messages.
+ * level 3: print ssh connection establishment/disconnection.
+ * level 4: print chunk information.
+ */
void pprint_set_level(int level);
void pprint(int level, const char *fmt, ...);
@@ -11,4 +16,5 @@ void pprint(int level, const char *fmt, ...);
#define pprint3(fmt, ...) pprint(3, "\r\033[K" fmt, ##__VA_ARGS__)
#define pprint4(fmt, ...) pprint(4, "\r\033[K" fmt, ##__VA_ARGS__)
+
#endif /* _PPRRINT_H_ */