Added support '%u' type specifier and '#' flag to format().
(Having '%u' fixes file count not being displayed in log output.)