-/* log the transfer of a file */
-void log_item(struct file_struct *file, struct stats *initial_stats,
- int iflags, char *hlink)
+/* Log the transfer of a file. If the code is FNAME, the output just goes
+ * to stdout. If it is FLOG, it just goes to the log file. Otherwise we
+ * output to both. */
+void log_item(enum logcode code, struct file_struct *file,
+ struct stats *initial_stats, int iflags, char *hlink)