appendf
appendf(&msg, "%s", cmd);
appendf(&msg, " %s", file1);
appendf(&msg, " %s", file2);
appendf(&msg, " = %jd bytes", (intmax_t)cnt);
appendf(&msg, " (wd: %s", wd);
appendf(&msg, "; chrooted");
appendf(&msg, ")");